JGraphpad Pro
v6.0.5.0


com.jgraph.pad.util
Class JGraphpadParallelSplineRouter

java.lang.Object
  extended byorg.jgraph.graph.DefaultEdge.LoopRouting
      extended bycom.jgraph.pad.util.JGraphpadParallelSplineRouter
All Implemented Interfaces:
org.jgraph.graph.Edge.Routing, Serializable

public class JGraphpadParallelSplineRouter
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 JGraphpadParallelSplineRouter sharedInstance
           
 
Fields inherited from interface org.jgraph.graph.Edge.Routing
NO_PREFERENCE
 
Method Summary
 double getEdgeSeparation()
           
 int getEdgeStyle()
           
 Object[] getParallelEdges(org.jgraph.graph.EdgeView edge)
          Returns the array of parallel edges.
static JGraphpadParallelSplineRouter getSharedInstance()
           
 List routeEdge(org.jgraph.graph.GraphLayoutCache cache, org.jgraph.graph.EdgeView edge)
           
 void setEdgeSeparation(double edgeSeparation)
           
 
Methods inherited from class org.jgraph.graph.DefaultEdge.LoopRouting
getLoopStyle, getPreferredLineStyle, route, 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 JGraphpadParallelSplineRouter 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 Object[] getParallelEdges(org.jgraph.graph.EdgeView edge)
Returns the array of parallel edges.

Parameters:
edge -

routeEdge

public List routeEdge(org.jgraph.graph.GraphLayoutCache cache,
                      org.jgraph.graph.EdgeView edge)

getEdgeStyle

public int getEdgeStyle()

getEdgeSeparation

public double getEdgeSeparation()
Returns:
Returns the edgeSeparation.

setEdgeSeparation

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

getSharedInstance

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

JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.