|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.connector.IncrManhattanRouter
public class IncrManhattanRouter
A manhattan router which does only incremental routing and delegates static routing to another manhattan router implementation.
Red |
Field Summary | |
---|---|
private ManhattanRouter |
_staticRouter
The static router that handles calls to route(). |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ManhattanRouter _staticRouter
Constructor Detail |
---|
public IncrManhattanRouter(ManhattanRouter staticRouter)
Method Detail |
---|
public void rerouteHead(Connector c, java.awt.Shape s)
rerouteHead
in interface Router
public void rerouteTail(Connector c, java.awt.Shape s)
rerouteTail
in interface Router
public void reroute(Connector c, java.awt.Shape s)
reroute
in interface Router
public java.awt.Shape route(Connector c)
route
in interface Router
public Polyline2D routeManhattan(ManhattanConnector c)
routeManhattan
in interface ManhattanRouter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |