Package org.jgraph.graph
Class DefaultEdge.LoopRouting
- java.lang.Object
-
- org.jgraph.graph.DefaultEdge.LoopRouting
-
- All Implemented Interfaces:
java.io.Serializable
,Edge.Routing
- Direct Known Subclasses:
DefaultEdge.DefaultRouting
,ParallelEdgeRouter
- Enclosing class:
- DefaultEdge
public static class DefaultEdge.LoopRouting extends java.lang.Object implements Edge.Routing
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jgraph.graph.Edge.Routing
NO_PREFERENCE
-
-
Constructor Summary
Constructors Constructor Description LoopRouting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
route
public java.util.List route(GraphLayoutCache cache, EdgeView edge)
Description copied from interface:Edge.Routing
Returns the points to be used for the edge.- Specified by:
route
in interfaceEdge.Routing
- Parameters:
cache
- TODOedge
- The edge view to route the points for.
-
routeLoop
protected java.util.List routeLoop(GraphLayoutCache cache, EdgeView edge)
-
routeEdge
protected java.util.List routeEdge(GraphLayoutCache cache, EdgeView edge)
-
getPreferredLineStyle
public int getPreferredLineStyle(EdgeView edge)
Description copied from interface:Edge.Routing
Returns the preferred line style for this routing. A return value ofEdge.Routing.NO_PREFERENCE
means no preference.- Specified by:
getPreferredLineStyle
in interfaceEdge.Routing
-
getLoopStyle
protected int getLoopStyle()
-
getEdgeStyle
protected int getEdgeStyle()
-
-