org.jgraph.util
Class JGraphParallelEdgeRouter

java.lang.Object
  extended byorg.jgraph.util.JGraphParallelEdgeRouter

public class JGraphParallelEdgeRouter
extends java.lang.Object


Field Summary
 double edgeSeparation
          The distance between the control point and the middle line.
protected static GraphModel emptyModel
           
static JGraphParallelEdgeRouter sharedInstance
           
 
Method Summary
 double getEdgeSeparation()
           
 java.lang.Object[] getParallelEdges(EdgeView edge)
          Returns the array of parallel edges.
static JGraphParallelEdgeRouter getSharedInstance()
           
 void route(EdgeView edge, java.util.List points)
           
 void setEdgeSeparation(double edgeSeparation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyModel

protected static 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(EdgeView edge)
Returns the array of parallel edges.

Parameters:
edge -
Returns:

route

public void route(EdgeView edge,
                  java.util.List points)

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.