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

    Modifier and Type
    Method
    Description
    void
    paintEdge(Graphics g, NodeGraph graph, GraphEdge edge, double[] xs, double[] ys, int count, boolean selected)
    Paints edge through the points.
  • Method Details

    • paintEdge

      void paintEdge(Graphics g, NodeGraph graph, GraphEdge edge, double[] xs, double[] ys, int count, boolean selected)

      Paints edge through the points.

      Parameters
      • g: the graphics
      • graph: the component
      • edge: the edge
      • xs, ys: the path on screen, from the source to the target; curves are already flattened into points
      • count: how many points of the arrays are used
      • selected: true when the edge is selected