class documentation
class AlphaVaryingEdgeDrawer(AbstractCairoEdgeDrawer):
Known subclasses: igraph.drawing.cairo.edge.DarkToLightEdgeDrawer
, igraph.drawing.cairo.edge.LightToDarkEdgeDrawer
Edge drawer implementation that draws undirected edges as straight lines and directed edges by varying the alpha value of the specified edge color between the source and the destination.
Method | __init__ |
Constructs the edge drawer. |
Method | draw |
Draws a directed edge. |
Instance Variable | alpha |
Undocumented |
Instance Variable | alpha |
Undocumented |
Inherited from AbstractCairoEdgeDrawer
:
Method | draw |
Draws a loop edge. |
Method | draw |
Draws an undirected edge. |
Instance Variable | context |
Undocumented |
Instance Variable | palette |
Undocumented |
Instance Variable |
|
Undocumented |
Method | _construct |
Construct the visual edge builder that will collect the visual attributes of an edge when it is being drawn. |
Inherited from AbstractEdgeDrawer
(via AbstractCairoEdgeDrawer
):
Method | get |
returns the position where the label of an edge should be drawn. the default implementation returns the midpoint of the edge and an alignment that tries to avoid overlapping the label with the edge. |
Method | get |
Get the rotation angle of the label to align with the edge. |
Static Method | _curvature |
Converts values given to the 'curved' edge style argument in plotting calls to floating point values. |
overridden in
igraph.drawing.cairo.edge.DarkToLightEdgeDrawer
, igraph.drawing.cairo.edge.LightToDarkEdgeDrawer
Constructs the edge drawer.
Parameters | |
context | a Cairo context on which the edges will be drawn. |
palette | the palette that can be used to map integer color indices to colors when drawing edges |
alpha | Undocumented |
alpha | Undocumented |
Draws a directed edge.
Parameters | |
edge | the edge to be drawn. Visual properties of the edge are defined by the attributes of this object. |
src | the source vertex. Visual properties are defined by the attributes of this object. |
dest | the source vertex. Visual properties are defined by the attributes of this object. |