Class EdgeShape.Box<V,​E>

  • All Implemented Interfaces:
    EdgeShape.IndexedRendering<V,​E>, org.apache.commons.collections4.Transformer<edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,​E>,​E>,​java.awt.Shape>
    Enclosing class:
    EdgeShape<V,​E>

    public static class EdgeShape.Box<V,​E>
    extends AbstractEdgeShapeTransformer<V,​E>
    implements EdgeShape.IndexedRendering<V,​E>
    An edge shape that renders as a loop with its nadir at the center of the vertex. Parallel instances will not overlap.
    • Field Detail

      • parallelEdgeIndexFunction

        protected edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,​E> parallelEdgeIndexFunction
    • Constructor Detail

      • Box

        public Box()
    • Method Detail

      • transform

        public java.awt.Shape transform​(edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,​E>,​E> context)
        Get the shape for this edge, modifying the diameter in the case of parallel edges, so they do not overlap
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<V,​E>