Class EdgeShape<V,E>

java.lang.Object
edu.uci.ics.jung.visualization.decorators.EdgeShape<V,E>
Type Parameters:
V - the vertex type
E - the edge type

public class EdgeShape<V,E> extends Object
An interface for decorators that return a Shape for a specified edge. All edge shapes must be defined so that their endpoints are at (0,0) and (1,0). They will be scaled, rotated and translated into position by the PluggableRenderer.
  • Field Details

    • LINE

      private static final Line2D LINE
    • BENT_LINE

      private static final GeneralPath BENT_LINE
    • QUAD_CURVE

      private static final QuadCurve2D QUAD_CURVE
    • CUBIC_CURVE

      private static final CubicCurve2D CUBIC_CURVE
    • ELLIPSE

      private static final Ellipse2D ELLIPSE
    • BOX

      private static Rectangle2D BOX
    • triangle

      private static GeneralPath triangle
    • bowtie

      private static GeneralPath bowtie
    • graph

      protected final Graph<V,E> graph
    • loop

      protected final EdgeShape<V,E>.Loop loop
      A convenience instance for other edge shapes to use for self-loop edges where parallel instances will not overlay each other.
    • simpleLoop

      protected final EdgeShape<V,E>.SimpleLoop simpleLoop
      A convenience instance for other edge shapes to use for self-loop edges where parallel instances overlay each other.
    • box

      protected final EdgeShape<V,E>.Box box
  • Constructor Details

    • EdgeShape

      public EdgeShape(Graph<V,E> g)
  • Method Details