public class ParallelEdgeRouter extends DefaultEdge.LoopRouting
Modifier and Type | Field and Description |
---|---|
protected static ParallelEdgeRouter |
sharedInstance
Singleton to reach parallel edge router
|
NO_PREFERENCE
Constructor and Description |
---|
ParallelEdgeRouter() |
Modifier and Type | Method and Description |
---|---|
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 java.lang.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
|
java.util.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)
Deprecated.
graph instance retained internally
|
getEdgeStyle, getLoopStyle, getPreferredLineStyle, route, routeLoop
protected static final ParallelEdgeRouter sharedInstance
public static ParallelEdgeRouter getSharedInstance()
public java.util.List routeEdge(GraphLayoutCache cache, EdgeView edge)
routeEdge
in class DefaultEdge.LoopRouting
edge
- Edge for which routing is demandingpublic static double getEdgeSeparation()
public static void setEdgeSeparation(double edgeSeparation)
edgeSeparation
- New distancepublic static double getEdgeDeparture()
public static void setEdgeDeparture(double edgeDeparture)
edgeDeparture
- New distanceprotected java.lang.Object[] getParallelEdges(GraphLayoutCache cache, EdgeView edge, CellView cellView1, CellView cellView2)
edge
- Edge on which one wants to know parallel edgespublic static void setGraph(JGraph graph)
graph
- The graph to set.Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.