V - The vertex typeE - The edge typepublic class OrthogonalEdgeRouter<V extends Vertex,E extends Edge<V>>
extends java.lang.Object
| Constructor and Description |
|---|
OrthogonalEdgeRouter(java.util.List<E> edges,
java.util.Map<V,java.awt.geom.Point2D> vertexMappings,
java.util.Map<E,java.lang.Integer> eXMap,
int xDistance)
Creates the edge router given list of edges to be positioned and vertices with their positions
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<E,java.util.List<java.awt.geom.Point2D>> |
routeEdges() |
public OrthogonalEdgeRouter(java.util.List<E> edges, java.util.Map<V,java.awt.geom.Point2D> vertexMappings, java.util.Map<E,java.lang.Integer> eXMap, int xDistance)
edges - Edges to be routedvertexMappings - A map of vertices and their positionseXMap - A map of visibility representation's E_x valuesxDistance - A parameter for calculating horizontal positions of nodespublic java.util.Map<E,java.util.List<java.awt.geom.Point2D>> routeEdges()