|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DefaultRouting edu.jhu.ece.iacl.jist.pipeline.graph.AvoidanceRouting
public class AvoidanceRouting
Algorithm for routing connectors so that they avoid intersecting graph modules.
Nested Class Summary | |
---|---|
protected static class |
AvoidanceRouting.Dir
The Enum Dir. |
Field Summary | |
---|---|
protected static double |
BORDER_SPACE
The BORDE r_ space. |
protected static int |
DEPTH_LIMIT
The DEPT h_ limit. |
protected static int |
MAX_PATHS
The MA x_ paths. |
protected java.util.ArrayList<java.awt.geom.Rectangle2D> |
obstacles
The obstacles. |
Constructor Summary | |
---|---|
AvoidanceRouting()
|
Method Summary | |
---|---|
protected java.util.Vector |
computeRoute(GraphLayoutCache cache,
java.awt.geom.Point2D from,
java.awt.geom.Point2D to,
AvoidanceRouting.Dir direction)
Compute avoidance route. |
protected java.util.ArrayList<java.awt.geom.Rectangle2D> |
getObstacles(GraphLayoutCache cache,
java.awt.geom.Point2D from,
java.awt.geom.Point2D to)
Get list of rectangular obstacles in graph. |
protected java.awt.geom.Rectangle2D |
getPathBounds(java.awt.geom.Point2D from,
java.awt.geom.Point2D to)
Get rectangular bounds around start and end locations. |
java.util.List |
route(GraphLayoutCache cache,
EdgeView edge)
|
protected java.util.List |
routeEdge(GraphLayoutCache cache,
EdgeView edge)
Route edge. |
protected void |
simplifyPath(java.util.Vector<java.awt.geom.Point2D> path,
int parity)
The avoidance path may have lots of unnecessary bends in it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static double BORDER_SPACE
protected static int DEPTH_LIMIT
protected static int MAX_PATHS
protected java.util.ArrayList<java.awt.geom.Rectangle2D> obstacles
Constructor Detail |
---|
public AvoidanceRouting()
Method Detail |
---|
protected java.util.Vector computeRoute(GraphLayoutCache cache, java.awt.geom.Point2D from, java.awt.geom.Point2D to, AvoidanceRouting.Dir direction)
cache
- layout cachefrom
- start pointto
- end pointdirection
- initial direction
protected java.util.ArrayList<java.awt.geom.Rectangle2D> getObstacles(GraphLayoutCache cache, java.awt.geom.Point2D from, java.awt.geom.Point2D to)
cache
- layout cachefrom
- start pointto
- end point
protected java.awt.geom.Rectangle2D getPathBounds(java.awt.geom.Point2D from, java.awt.geom.Point2D to)
from
- the fromto
- the to
public java.util.List route(GraphLayoutCache cache, EdgeView edge)
protected java.util.List routeEdge(GraphLayoutCache cache, EdgeView edge)
cache
- the cacheedge
- the edge
protected void simplifyPath(java.util.Vector<java.awt.geom.Point2D> path, int parity)
path
- original pathparity
- Zero indicates inital direction is up/down and one indicates
left/right
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |