org.jgraph.util
public class ParallelEdgeRouter extends DefaultEdge.LoopRouting
| Field Summary | |
|---|---|
| protected static ParallelEdgeRouter | sharedInstance
Singleton to reach parallel edge router |
| Method Summary | |
|---|---|
| static double | getEdgeDeparture()
Getter to obtain the distance between intermediate and source/target
points
|
| static double | getEdgeSeparation()
Getter to obtain the distance between each parallel edge
|
| protected Object[] | getParallelEdges(GraphLayoutCache cache, EdgeView edge, CellView cellView1, CellView cellView2)
Getter to obtain the list of parallel edges
|
| static ParallelEdgeRouter | getSharedInstance()
Getter for singleton managing parallel edges
|
| List | routeEdge(GraphLayoutCache cache, EdgeView edge)
Calc of intermediates points
|
| static void | setEdgeDeparture(double edgeDeparture)
Setter to define distance between intermediate and source/target points
|
| static void | setEdgeSeparation(double edgeSeparation)
Setter to define distance between each parallel edge
|
| static void | setGraph(JGraph graph) |
Returns: Distance
Returns: Distance
Parameters: edge Edge on which one wants to know parallel edges
Returns: Object[] Array of parallel edges (include edge passed on argument)
Returns: ParallelEdgeRouter for parallel edges
Parameters: edge Edge for which routing is demanding
Parameters: edgeDeparture New distance
Parameters: edgeSeparation New distance
Deprecated: graph instance retained internally
Parameters: graph The graph to set.