edu.iastate.reload.ui
Class JGraphParallelEdgeRouter

java.lang.Object
  extended by org.jgraph.graph.DefaultEdge.LoopRouting
      extended by edu.iastate.reload.ui.JGraphParallelEdgeRouter
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.Edge.Routing

public class JGraphParallelEdgeRouter
extends org.jgraph.graph.DefaultEdge.LoopRouting

See Also:
Serialized Form

Field Summary
 double edgeSeparation
          The distance between the control point and the middle line.
protected static org.jgraph.graph.GraphModel emptyModel
           
static JGraphParallelEdgeRouter sharedInstance
           
 
Fields inherited from interface org.jgraph.graph.Edge.Routing
NO_PREFERENCE
 
Method Summary
 double getEdgeSeparation()
           
 java.lang.Object[] getParallelEdges(org.jgraph.graph.EdgeView edge)
          Returns the array of parallel edges.
static JGraphParallelEdgeRouter getSharedInstance()
           
 java.util.List route(org.jgraph.graph.EdgeView edge)
           
 void setEdgeSeparation(double edgeSeparation)
           
 
Methods inherited from class org.jgraph.graph.DefaultEdge.LoopRouting
getEdgeStyle, getLoopStyle, getPreferredLineStyle, routeEdge, routeLoop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyModel

protected static org.jgraph.graph.GraphModel emptyModel

sharedInstance

public static JGraphParallelEdgeRouter sharedInstance

edgeSeparation

public double edgeSeparation
The distance between the control point and the middle line. A larger number will lead to a more "bubbly" appearance of the bezier edges.

Method Detail

getParallelEdges

public java.lang.Object[] getParallelEdges(org.jgraph.graph.EdgeView edge)
Returns the array of parallel edges.

Parameters:
edge -
Returns:
the array of parallel edges

route

public java.util.List route(org.jgraph.graph.EdgeView edge)
Specified by:
route in interface org.jgraph.graph.Edge.Routing
Overrides:
route in class org.jgraph.graph.DefaultEdge.LoopRouting

getEdgeSeparation

public double getEdgeSeparation()
Returns:
Returns the edgeSeparation.

setEdgeSeparation

public void setEdgeSeparation(double edgeSeparation)
Parameters:
edgeSeparation - The edgeSeparation to set.

getSharedInstance

public static JGraphParallelEdgeRouter getSharedInstance()
Returns:
Returns the sharedInstance.