class documentation
class DefaultVertexDrawer(AbstractCairoVertexDrawer):
The default vertex drawer implementation of igraph.
Method | __init__ |
Constructs the vertex drawer and associates it to the given Cairo context and the given BoundingBox . |
Method | draw |
Draws the given vertex. |
Instance Variable |
|
Undocumented |
Method | _construct |
Undocumented |
Inherited from AbstractVertexDrawer
(via AbstractCairoVertexDrawer
):
Instance Variable | layout |
Undocumented |
Instance Variable | palette |
Undocumented |
Inherited from AbstractCairoDrawer
(via AbstractCairoVertexDrawer
, AbstractVertexDrawer
):
Method | bbox |
Sets the bounding box of the drawing area where this drawer will draw. |
Instance Variable | context |
Undocumented |
Property | bbox |
The bounding box of the drawing area where this drawer will draw. |
Method | _mark |
Marks the given point with a small circle on the canvas. Used primarily for debugging purposes. |
Instance Variable | _bbox |
Undocumented |
Constructs the vertex 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). |
palette | the palette that can be used to map integer color indices to colors when drawing vertices |
layout | the layout of the vertices in the graph being drawn |
Draws the given vertex.
Parameters | |
visual | object specifying the visual properties of the vertex. Its structure is defined by the VisualVertexBuilder of the DefaultGraphDrawer ; see its source code. |
vertex | the raw igraph vertex being drawn |
coords | the X and Y coordinates of the vertex as specified by the layout algorithm, scaled into the bounding box. |