|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Renderer
Draws individual vertices and edges on a display. Given a Graphics context, it paints a Vertex or an Edge appropriately.
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.
Method Summary | |
---|---|
void |
paintEdge(Graphics g,
Edge e,
int x1,
int y1,
int x2,
int y2)
|
void |
paintVertex(Graphics g,
Vertex v,
int x,
int y)
|
void |
setPickedKey(PickedInfo pk)
Deprecated. Use an independent PickedInfo instance. |
Method Detail |
---|
void paintVertex(Graphics g, Vertex v, int x, int y)
void paintEdge(Graphics g, Edge e, int x1, int y1, int x2, int y2)
void setPickedKey(PickedInfo pk)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |