Class EdgeShape.CubicCurve<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.CubicCurve<V,​E>
    extends AbstractEdgeShapeTransformer<V,​E>
    implements EdgeShape.IndexedRendering<V,​E>
    An edge shape that renders as a CubicCurve between vertex endpoints. The two control points are at (1/3*length, 2*controlY) and (2/3*length, controlY) giving a 'spiral' effect.
    • Field Detail

      • parallelEdgeIndexFunction

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

      • CubicCurve

        public CubicCurve()
    • 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, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<V,​E>