public class OrthogonalRouting
extends org.jgraph.graph.DefaultEdge.DefaultRouting
Constructor and Description |
---|
OrthogonalRouting() |
Modifier and Type | Method and Description |
---|---|
int |
getPreferredLineStyle(org.jgraph.graph.EdgeView edge)
Returns the preferred line style for this routing.
|
java.util.List |
route(org.jgraph.graph.GraphLayoutCache cache,
org.jgraph.graph.EdgeView edge)
Returns the points to be used for the edge.
|
public java.util.List route(org.jgraph.graph.GraphLayoutCache cache, org.jgraph.graph.EdgeView edge)
org.jgraph.graph.Edge.Routing
route
in interface org.jgraph.graph.Edge.Routing
route
in class org.jgraph.graph.DefaultEdge.LoopRouting
cache
- TODOedge
- The edge view to route the points for.public int getPreferredLineStyle(org.jgraph.graph.EdgeView edge)
org.jgraph.graph.Edge.Routing
Edge.Routing.NO_PREFERENCE
means no preference.getPreferredLineStyle
in interface org.jgraph.graph.Edge.Routing
getPreferredLineStyle
in class org.jgraph.graph.DefaultEdge.LoopRouting