Class ArticulatedEdgeTransformer<V extends VisualVertex,​E extends VisualEdge<V>>

  • Type Parameters:
    V - the vertex type
    E - the edge type
    All Implemented Interfaces:
    com.google.common.base.Function<E,​java.awt.Shape>

    public class ArticulatedEdgeTransformer<V extends VisualVertex,​E extends VisualEdge<V>>
    extends edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer<V,​E>
    An edge shape that renders as a series of straight lines between articulation points.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int OVERLAPPING_EDGE_OFFSET  
      • Fields inherited from class edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer

        control_offset_increment, edgeIndexFunction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Shape apply​(E e)
      Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.
      int getOverlapOffset​(E edge)
      Returns a value by which to offset edges that overlap.
      • Methods inherited from class edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer

        getEdgeIndexFunction, setControlOffsetIncrement, setEdgeIndexFunction
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
    • Field Detail

      • OVERLAPPING_EDGE_OFFSET

        protected static final int OVERLAPPING_EDGE_OFFSET
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArticulatedEdgeTransformer

        public ArticulatedEdgeTransformer()
    • Method Detail

      • getOverlapOffset

        public int getOverlapOffset​(E edge)
        Returns a value by which to offset edges that overlap. This is used to make the edges easier to see.
        Parameters:
        edge - the edge
        Returns:
        the offset value
      • apply

        public java.awt.Shape apply​(E e)
        Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.