public static class DefaultEdge.LoopRouting extends java.lang.Object implements Edge.Routing
NO_PREFERENCE
Constructor and Description |
---|
LoopRouting() |
Modifier and Type | Method and Description |
---|---|
protected int |
getEdgeStyle() |
protected int |
getLoopStyle() |
int |
getPreferredLineStyle(EdgeView edge)
Returns the preferred line style for this routing.
|
java.util.List |
route(GraphLayoutCache cache,
EdgeView edge)
Returns the points to be used for the edge.
|
protected java.util.List |
routeEdge(GraphLayoutCache cache,
EdgeView edge) |
protected java.util.List |
routeLoop(GraphLayoutCache cache,
EdgeView edge) |
public java.util.List route(GraphLayoutCache cache, EdgeView edge)
Edge.Routing
route
in interface Edge.Routing
cache
- TODOedge
- The edge view to route the points for.protected java.util.List routeLoop(GraphLayoutCache cache, EdgeView edge)
protected java.util.List routeEdge(GraphLayoutCache cache, EdgeView edge)
public int getPreferredLineStyle(EdgeView edge)
Edge.Routing
Edge.Routing.NO_PREFERENCE
means no preference.getPreferredLineStyle
in interface Edge.Routing
protected int getLoopStyle()
protected int getEdgeStyle()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.