org.jgraph.util
Class ParallelEdgeRouter
- java.lang.Object
-
- org.jgraph.graph.DefaultEdge.LoopRouting
-
- org.jgraph.util.ParallelEdgeRouter
-
- All Implemented Interfaces:
- java.io.Serializable, Edge.Routing
public class ParallelEdgeRouter extends DefaultEdge.LoopRouting
A routing algorithm that- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jgraph.graph.Edge.Routing
NO_PREFERENCE
-
-
Constructor Summary
Constructors Constructor and Description ParallelEdgeRouter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static doublegetEdgeDeparture()Getter to obtain the distance between intermediate and source/target pointsstatic doublegetEdgeSeparation()Getter to obtain the distance between each parallel edgestatic ParallelEdgeRoutergetSharedInstance()Getter for singleton managing parallel edgesjava.util.ListrouteEdge(GraphLayoutCache cache, EdgeView edge)Calc of intermediates pointsstatic voidsetEdgeDeparture(double edgeDeparture)Setter to define distance between intermediate and source/target pointsstatic voidsetEdgeSeparation(double edgeSeparation)Setter to define distance between each parallel edgestatic voidsetGraph(JGraph graph)Deprecated.graph instance retained internally-
Methods inherited from class org.jgraph.graph.DefaultEdge.LoopRouting
getPreferredLineStyle, route
-
-
-
-
Method Detail
-
getSharedInstance
public static ParallelEdgeRouter getSharedInstance()
Getter for singleton managing parallel edges- Returns:
- ParallelEdgeRouter for parallel edges
-
routeEdge
public java.util.List routeEdge(GraphLayoutCache cache, EdgeView edge)
Calc of intermediates points- Parameters:
edge- Edge for which routing is demanding
-
getEdgeSeparation
public static double getEdgeSeparation()
Getter to obtain the distance between each parallel edge- Returns:
- Distance
-
setEdgeSeparation
public static void setEdgeSeparation(double edgeSeparation)
Setter to define distance between each parallel edge- Parameters:
edgeSeparation- New distance
-
getEdgeDeparture
public static double getEdgeDeparture()
Getter to obtain the distance between intermediate and source/target points- Returns:
- Distance
-
setEdgeDeparture
public static void setEdgeDeparture(double edgeDeparture)
Setter to define distance between intermediate and source/target points- Parameters:
edgeDeparture- New distance
-
setGraph
public static void setGraph(JGraph graph)
Deprecated. graph instance retained internally- Parameters:
graph- The graph to set.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG