Package igraph :: Module drawing :: Class CircleDrawer
[hide private]
[frames] | no frames]

Class CircleDrawer

 object --+    
          |    
ShapeDrawer --+
              |
             CircleDrawer

Static class which draws circular vertices

Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
draw_path(ctx, cx, cy, w, h=None)
Draws a circular path on the Cairo context without stroking or filling.
 
intersection_point(cx, cy, sx, sy, w, h=None)
Determines where the shape centered at (cx, cy) intersects with a line drawn from (sx, sy) to (cx, cy).
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

draw_path(ctx, cx, cy, w, h=None)
Static Method

 

Draws a circular path on the Cairo context without stroking or filling.

Height is ignored, it is the width that determines the diameter of the circle.

Parameters:
  • ctx - the context to draw on
  • cx - the X coordinate of the center of the object
  • cy - the Y coordinate of the center of the object
  • w - the width of the object
  • h - the height of the object. If None, equals to the width.
Overrides: ShapeDrawer.draw_path

See Also: ShapeDrawer.draw_path

intersection_point(cx, cy, sx, sy, w, h=None)
Static Method

 

Determines where the shape centered at (cx, cy) intersects with a line drawn from (sx, sy) to (cx, cy).

Can be overridden in derived classes. Must always be defined as a static method using staticmethod(...)

Parameters:
  • w - the width of the shape
  • h - the height of the shape. If None, defaults to the width
Returns:
the intersection point (the closest to (sx, sy) if there are more than one) or (cx, cy) if there is no intersection
Overrides: ShapeDrawer.intersection_point
(inherited documentation)