Package visgraph :: Package renderers :: Class GraphRenderer
[hide private]
[frames] | no frames]

Class GraphRenderer

source code

Only a "renderer" knows how big each node will end up based on metadata in the graph which is specific to the renderer.

All renderers should be able to set the (x,y) "size" tuple

Instance Methods [hide private]
__init__(self, graph) source code
beginRender(self, width, height) source code
endRender(self) source code
setNodeSizes(self, graph)
Calculate the sizes for each node based on graph metadata (or defaults)
source code
renderNode(self, nid, ninfo, xpos, ypos)
Render the given node at the specified position.
source code
renderEdge(self, eid, einfo, points)
Render an edge in the graph by drawing lines between all the listed points (as (x,y) tuples...)
source code
renderGraph(self) source code