edu.uci.ics.jung.graph.decorators
Class EdgeShape.Loop

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
      extended by 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.


Field Summary
protected  ParallelEdgeIndexFunction parallelEdgeIndexFunction
           
 
Fields inherited from class edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
control_offset_increment
 
Constructor Summary
EdgeShape.Loop()
           
 
Method Summary
 Shape getShape(Edge e)
          Get the shape for this edge, modifying the diameter in the case of parallel edges, so they do not overlap
 void setParallelEdgeIndexFunction(ParallelEdgeIndexFunction parallelEdgeIndexFunction)
           
 
Methods inherited from class edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
setControlOffsetIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parallelEdgeIndexFunction

protected ParallelEdgeIndexFunction parallelEdgeIndexFunction
Constructor Detail

EdgeShape.Loop

public EdgeShape.Loop()
Method Detail

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