|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscratch.danyel.QuickDrawRenderer
public class QuickDrawRenderer
A rather fixed renderer for generating VERY quick demos. Use this code for debugging your system: this isn't the prettiest renderer, just a fairly functional one.
| Constructor Summary | |
|---|---|
QuickDrawRenderer(StringLabeller sl)
Creates a QuickDrawRenderer that will be drawn in the "light" style: a colored box next to text, instead of text overlaying the box. |
|
| Method Summary | |
|---|---|
protected String |
getLabel(Vertex v)
Simple label function returns the StringLabeller's notion of v's label. |
void |
renderEdge(Graphics g,
VisEdge ec)
|
void |
renderVertex(Graphics g,
VisVertex vc)
Paints the vertex, using the settings above (VertexColors, etc). |
void |
setStringLabeller(StringLabeller sl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuickDrawRenderer(StringLabeller sl)
sl - light - | Method Detail |
|---|
public void setStringLabeller(StringLabeller sl)
protected String getLabel(Vertex v)
v - a vertex
public void renderVertex(Graphics g,
VisVertex vc)
renderVertex in interface VertexRenderer
public void renderEdge(Graphics g,
VisEdge ec)
renderEdge in interface EdgeRendererEdgeRenderer.renderEdge(java.awt.Graphics,
samples.preview_new_graphdraw.VisEdge)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||