public interface Renderer
Users must provide an appropriate Renderer, if they are rendering to AWT / Swing. (Presumably, a similar mechanism might be built for other Graphics types; however, this class and its implementations are all Swing specific).
The PluggableRenderer
is a good starting Renderer
for off-the shelf use.
In general, one can expect that paintVertex
and paintEdge
will
only be called with visible edges and visible vertices.
Modifier and Type | Method and Description |
---|---|
void |
paintEdge(java.awt.Graphics g,
Edge e,
int x1,
int y1,
int x2,
int y2) |
void |
paintVertex(java.awt.Graphics g,
Vertex v,
int x,
int y) |
void |
setPickedKey(PickedInfo pk)
Deprecated.
Use an independent PickedInfo instance.
|
void paintVertex(java.awt.Graphics g, Vertex v, int x, int y)
void paintEdge(java.awt.Graphics g, Edge e, int x1, int y1, int x2, int y2)
void setPickedKey(PickedInfo pk)