Package org.jgraph.graph
Interface Edge.Routing
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultEdge.DefaultRouting
,DefaultEdge.LoopRouting
,ParallelEdgeRouter
- Enclosing interface:
- Edge
public static interface Edge.Routing extends java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_PREFERENCE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
NO_PREFERENCE
static final int NO_PREFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
route
java.util.List route(GraphLayoutCache cache, EdgeView edge)
Returns the points to be used for the edge.- Parameters:
cache
- TODOedge
- The edge view to route the points for.
-
getPreferredLineStyle
int getPreferredLineStyle(EdgeView edge)
Returns the preferred line style for this routing. A return value ofNO_PREFERENCE
means no preference.
-
-