Interface GraphEdgeRenderer
- All Known Implementing Classes:
DefaultGraphEdgeRenderer
public interface GraphEdgeRenderer
Paints an edge along the path the graph computed for it.
DefaultGraphEdgeRenderer paints a line with an arrowhead and a label.-
Method Summary
-
Method Details
-
paintEdge
void paintEdge(Graphics g, NodeGraph graph, GraphEdge edge, double[] xs, double[] ys, int count, boolean selected) Paints
edgethrough the points.Parameters
g: the graphicsgraph: the componentedge: the edgexs,ys: the path on screen, from the source to the target; curves are already flattened into pointscount: how many points of the arrays are usedselected: true when the edge is selected
-