|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.DefaultEdge.LoopRouting
org.jgraph.util.ParallelEdgeRouter
A routing algorithm that
Field Summary | |
protected static ParallelEdgeRouter |
sharedInstance
Singleton to reach parallel edge router |
Fields inherited from interface org.jgraph.graph.Edge.Routing |
NO_PREFERENCE |
Constructor Summary | |
ParallelEdgeRouter()
|
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)
Deprecated. graph instance retained internally |
Methods inherited from class org.jgraph.graph.DefaultEdge.LoopRouting |
getEdgeStyle, getLoopStyle, getPreferredLineStyle, route, routeLoop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final ParallelEdgeRouter sharedInstance
Constructor Detail |
public ParallelEdgeRouter()
Method Detail |
public static ParallelEdgeRouter getSharedInstance()
public 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 Object[] getParallelEdges(GraphLayoutCache cache, EdgeView edge, CellView cellView1, CellView cellView2)
edge
- Edge on which one wants to know parallel edges
public static void setGraph(JGraph graph)
graph
- The graph to set.
|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |