List of all classes, functions and methods in python-igraph
class AbstractCairoDrawer(AbstractDrawer):
Known subclasses: igraph.drawing.coord.CoordinateSystem
, igraph.drawing.graph.AbstractCairoGraphDrawer
, igraph.drawing.shapes.PolygonDrawer
, igraph.drawing.text.TextDrawer
, igraph.drawing.vertex.AbstractCairoVertexDrawer
Abstract class that serves as a base class for anything that draws on a Cairo context within a given bounding box.
A subclass of AbstractCairoDrawer
is guaranteed to have an attribute named context
that represents the Cairo context to draw on, and an attribute named bbox
for the BoundingBox
of the drawing area.
Method | __init__ |
Constructs the drawer and associates it to the given Cairo context and the given BoundingBox . |
Instance Variable | context |
Undocumented |
Property | bbox |
The bounding box of the drawing area where this drawer will draw. |
Method | bbox.setter |
Sets the bounding box of the drawing area where this drawer will draw. |
Method | draw |
Abstract method, must be implemented in derived classes. |
Instance Variable | _bbox |
Undocumented |
Method | _mark_point |
Marks the given point with a small circle on the canvas. Used primarily for debugging purposes. |
igraph.drawing.coord.CoordinateSystem
, igraph.drawing.graph.AbstractCairoGraphDrawer
, igraph.drawing.shapes.PolygonDrawer
, igraph.drawing.text.TextDrawer
, igraph.drawing.vertex.AbstractCairoVertexDrawer
Constructs the drawer and associates it to the given Cairo context and the given BoundingBox
.
Parameters | context | the context on which we will draw |
bbox | the bounding box within which we will draw. Can be anything accepted by the constructor of BoundingBox (i.e., a 2-tuple, a 4-tuple or a BoundingBox object). |
igraph.drawing.coord.DescartesCoordinateSystem
The bounding box of the drawing area where this drawer will draw.
igraph.drawing.coord.DescartesCoordinateSystem
Sets the bounding box of the drawing area where this drawer will draw.
igraph.drawing.coord.CoordinateSystem
, igraph.drawing.graph.DefaultGraphDrawer
, igraph.drawing.shapes.PolygonDrawer
, igraph.drawing.text.TextDrawer
, igraph.drawing.vertex.DefaultVertexDrawer
Abstract method, must be implemented in derived classes.
Marks the given point with a small circle on the canvas. Used primarily for debugging purposes.
Parameters | x | the X coordinate of the point to mark |
y | the Y coordinate of the point to mark | |
color | the color of the marker. It can be a 3-tuple (RGB components, alpha=0.5), a 4-tuple (RGBA components) or an index where zero means red, 1 means green, 2 means blue and so on. | |
size | the diameter of the marker. |