Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface GraphEdgeRenderer
Known subtypesDefaultGraphEdgeRenderer
Paints an edge along the path the graph computed for it.
DefaultGraphEdgeRenderer paints a line with an arrowhead and a label.Methods
public abstract void paintEdge(Graphics g, NodeGraph graph, GraphEdge edge, double[] xs, double[] ys, int count, boolean selected) | Paints edge through the points. |
Method details
paintEdge
public abstract void paintEdge(Graphics g, NodeGraph graph, GraphEdge edge, double[] xs, double[] ys, int count, boolean selected)Paints
edge through the points.Parameters
gGraphics- the graphics
graphNodeGraph- the component
edgeGraphEdge- the edge
xsdouble[]- ,
ys: the path on screen, from the source to the target; curves are already flattened into points ysdouble[]- Not documented.
countint- how many points of the arrays are used
selectedboolean- true when the edge is selected