public class DefaultDirectedEdgeRenderer extends Object implements DirectedEdgeRenderer
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDirectedEdgeRenderer.EdgeRouting
The different routing calculations to draw the edge
|
| Modifier and Type | Field and Description |
|---|---|
static Paint |
ERROR_PAINT |
static Paint |
LINE_PAINT |
static Paint |
TEXT_PAINT |
| Constructor and Description |
|---|
DefaultDirectedEdgeRenderer()
Setup arrow template
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2d,
DirectedEdge directedEdge)
Default implementation, can only draw straight line and does not add any label
|
void |
draw(Graphics2D g2d,
DirectedEdge directedEdge,
String label,
String type,
boolean hasError)
Draws an edge using different calculations, coloring and label
|
public static final Paint LINE_PAINT
public static final Paint TEXT_PAINT
public static final Paint ERROR_PAINT
public DefaultDirectedEdgeRenderer()
public void draw(Graphics2D g2d, DirectedEdge directedEdge)
draw in interface DirectedEdgeRendererg2d - the canvas to draw ondirectedEdge - te edge to be drawnpublic void draw(Graphics2D g2d, DirectedEdge directedEdge, String label, String type, boolean hasError)
g2d - the canvasdirectedEdge - edge to be drawnlabel - the label to put on the linetype - the type of the linehasError - if the edge is in an erroneous stateCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.