public class BasicManhattanRouter extends java.lang.Object implements ManhattanRouter
Constructor and Description |
---|
BasicManhattanRouter() |
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)
Route the given connector, returning a Shape.
|
Polyline2D |
routeManhattan(ManhattanConnector c)
Route the given connector, returning a Polyline2D.
|
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)
public java.awt.Shape route(Connector c)
public Polyline2D routeManhattan(ManhattanConnector c)
routeManhattan
in interface ManhattanRouter