Class DefaultDirectedEdgeRenderer
java.lang.Object
org.cristalise.kernel.graph.renderer.DefaultDirectedEdgeRenderer
- All Implemented Interfaces:
DirectedEdgeRenderer
- Direct Known Subclasses:
WfDirectedEdgeDefRenderer,WfDirectedEdgeRenderer
Default edge renderer implementing the DirectedEdgeRenderer. Use it as is or as a base class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe different routing calculations to draw the edge -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D g2d, DirectedEdge directedEdge) Default implementation, can only draw straight line and does not add any labelvoiddraw(Graphics2D g2d, DirectedEdge directedEdge, String label, String type, boolean hasError) Draws an edge using different calculations, coloring and label
-
Field Details
-
LINE_PAINT
-
TEXT_PAINT
-
ERROR_PAINT
-
-
Constructor Details
-
DefaultDirectedEdgeRenderer
public DefaultDirectedEdgeRenderer()Setup arrow template
-
-
Method Details
-
draw
Default implementation, can only draw straight line and does not add any label- Specified by:
drawin interfaceDirectedEdgeRenderer- Parameters:
g2d- the canvas to draw ondirectedEdge- te edge to be drawn
-
draw
public void draw(Graphics2D g2d, DirectedEdge directedEdge, String label, String type, boolean hasError) Draws an edge using different calculations, coloring and label- Parameters:
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 state
-