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.
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(...)
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)