|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.DefaultEdge.LoopRouting
com.jgraph.layout.routing.JGraphParallelRouter
Algorithm which create intermediates points for parallel edges. Note that if you require promotes edge (edges assigned to parents when the connected child cells are invisible) to be shown as parallel on the parents, you must set the graph on this router correct so that it was the view information.
Field Summary | |
protected static org.jgraph.JGraph |
graph
The current graph. |
Fields inherited from interface org.jgraph.graph.Edge.Routing |
NO_PREFERENCE |
Constructor Summary | |
JGraphParallelRouter()
|
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 |
static JGraphParallelRouter |
getSharedInstance()
Getter for singleton managing parallel edges |
List |
routeEdge(org.jgraph.graph.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(org.jgraph.JGraph graph)
|
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 org.jgraph.JGraph graph
Constructor Detail |
public JGraphParallelRouter()
Method Detail |
public static JGraphParallelRouter getSharedInstance()
public List routeEdge(org.jgraph.graph.EdgeView edge)
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 distancepublic static void setGraph(org.jgraph.JGraph graph)
graph
- The graph to set.
|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |