edu.uci.ics.jung.graph.decorators
Class EdgeShape.Loop
java.lang.Object
edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
edu.uci.ics.jung.graph.decorators.EdgeShape.Loop
- All Implemented Interfaces:
- EdgeShape.ParallelRendering, EdgeShapeFunction
- Enclosing class:
- EdgeShape
public static class EdgeShape.Loop
- extends AbstractEdgeShapeFunction
- implements EdgeShape.ParallelRendering
An edge shape that renders as a loop with its nadir at the
center of the vertex. Parallel instances will not overlap.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parallelEdgeIndexFunction
protected ParallelEdgeIndexFunction parallelEdgeIndexFunction
EdgeShape.Loop
public EdgeShape.Loop()
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, modifying the diameter in the
case of parallel edges, so they do not overlap
- Specified by:
getShape
in interface EdgeShapeFunction