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.
Author:
Tom Nelson
  • Field Details

    • 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