public class IncrManhattanRouter extends java.lang.Object implements ManhattanRouter
| Red |
| Constructor and Description |
|---|
IncrManhattanRouter(ManhattanRouter staticRouter)
Construct a new incremental router which delegates static
routing to the given manhattan router, but does incremental
routing (the reroute*() methods) on its own.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reroute(Connector c,
java.awt.Shape s)
Reroute the given shape, given that both the head the tail
sites moved.
|
void |
rerouteHead(Connector c,
java.awt.Shape s)
Reroute the given Shape, given that the head site moved.
|
void |
rerouteTail(Connector c,
java.awt.Shape s)
Reroute the given Shape, given that the tail site moved.
|
java.awt.Shape |
route(Connector c)
Delegate the static routing to the static router.
|
Polyline2D |
routeManhattan(ManhattanConnector c)
Delegate the static routing to the static router.
|
public IncrManhattanRouter(ManhattanRouter staticRouter)
public void rerouteHead(Connector c, java.awt.Shape s)
rerouteHead in interface Routerpublic void rerouteTail(Connector c, java.awt.Shape s)
rerouteTail in interface Routerpublic void reroute(Connector c, java.awt.Shape s)
public java.awt.Shape route(Connector c)
public Polyline2D routeManhattan(ManhattanConnector c)
routeManhattan in interface ManhattanRouter