Package org.jgraph.graph
Class DefaultEdge.LoopRouting
java.lang.Object
org.jgraph.graph.DefaultEdge.LoopRouting
- All Implemented Interfaces:
Serializable
,Edge.Routing
- Direct Known Subclasses:
DefaultEdge.DefaultRouting
,ParallelEdgeRouter
- Enclosing class:
DefaultEdge
- See Also:
-
Field Summary
Fields inherited from interface org.jgraph.graph.Edge.Routing
NO_PREFERENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
int
Returns the preferred line style for this routing.route
(GraphLayoutCache cache, EdgeView edge) Returns the points to be used for the edge.protected List
routeEdge
(GraphLayoutCache cache, EdgeView edge) protected List
routeLoop
(GraphLayoutCache cache, EdgeView edge)
-
Constructor Details
-
LoopRouting
public LoopRouting()
-
-
Method Details
-
route
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
-
routeEdge
-
getPreferredLineStyle
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()
-