edu.uci.ics.jung.graph.decorators
Class EdgeShape.CubicCurve
java.lang.Object
edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
edu.uci.ics.jung.graph.decorators.EdgeShape.CubicCurve
- All Implemented Interfaces:
- EdgeShape.ParallelRendering, EdgeShapeFunction
- Enclosing class:
- EdgeShape
public static class EdgeShape.CubicCurve
- extends AbstractEdgeShapeFunction
- implements EdgeShape.ParallelRendering
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parallelEdgeIndexFunction
protected ParallelEdgeIndexFunction parallelEdgeIndexFunction
EdgeShape.CubicCurve
public EdgeShape.CubicCurve()
setParallelEdgeIndexFunction
public void setParallelEdgeIndexFunction(ParallelEdgeIndexFunction parallelEdgeIndexFunction)
- Specified by:
setParallelEdgeIndexFunction
in interface EdgeShape.ParallelRendering
getShape
public Shape getShape(Edge e)
- 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:
getShape
in interface EdgeShapeFunction