org.jgraph.util
Class ParallelEdgeRouter
- Edge.Routing, Serializable
public class ParallelEdgeRouter
A routing algorithm that
sharedInstance
protected static final ParallelEdgeRouter sharedInstance
Singleton to reach parallel edge router
getEdgeDeparture
public static double getEdgeDeparture()
Getter to obtain the distance between intermediate and source/target
points
getEdgeSeparation
public static double getEdgeSeparation()
Getter to obtain the distance between each parallel edge
getParallelEdges
protected Object[] getParallelEdges(GraphLayoutCache cache,
EdgeView edge,
CellView cellView1,
CellView cellView2)
Getter to obtain the list of parallel edges
edge
- Edge on which one wants to know parallel edges
- Object[] Array of parallel edges (include edge passed on
argument)
getSharedInstance
public static ParallelEdgeRouter getSharedInstance()
Getter for singleton managing parallel edges
- ParallelEdgeRouter for parallel edges
setEdgeDeparture
public static void setEdgeDeparture(double edgeDeparture)
Setter to define distance between intermediate and source/target points
edgeDeparture
- New distance
setEdgeSeparation
public static void setEdgeSeparation(double edgeSeparation)
Setter to define distance between each parallel edge
edgeSeparation
- New distance
setGraph
public static void setGraph(JGraph graph)
graph instance retained internally
graph
- The graph to set.
Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.