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 intgetEdgeStyle()protected intgetLoopStyle()intgetPreferredLineStyle(EdgeView edge)Returns the preferred line style for this routing.java.util.Listroute(GraphLayoutCache cache, EdgeView edge)Returns the points to be used for the edge.protected java.util.ListrouteEdge(GraphLayoutCache cache, EdgeView edge)protected java.util.ListrouteLoop(GraphLayoutCache cache, EdgeView edge)
-
-
-
Method Detail
-
route
public java.util.List route(GraphLayoutCache cache, EdgeView edge)
Description copied from interface:Edge.RoutingReturns the points to be used for the edge.- Specified by:
routein 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.RoutingReturns the preferred line style for this routing. A return value ofEdge.Routing.NO_PREFERENCEmeans no preference.- Specified by:
getPreferredLineStylein interfaceEdge.Routing
-
getLoopStyle
protected int getLoopStyle()
-
getEdgeStyle
protected int getEdgeStyle()
-
-