public interface EdgeRouter
Modifier and Type | Method and Description |
---|---|
void |
paintDebug(java.awt.Graphics2D g)
Optional.
|
java.awt.geom.Path2D |
route(AnchorPoint start,
AnchorPoint end)
Find a route starting and ending at an anchor point.
|
java.awt.geom.Path2D |
route(AnchorPoint start,
java.awt.Point end)
Find a route starting at an anchor point and ending at any arbitrary point
|
java.util.List<java.awt.geom.Path2D> |
routeAll(java.util.Collection<Connection> connections)
Calculate routes for all connections
|
void |
setup(java.util.Map<java.util.UUID,java.awt.Rectangle> obstacles)
Sets up the edge router with the obstacles to avoid
|
void setup(java.util.Map<java.util.UUID,java.awt.Rectangle> obstacles)
java.util.List<java.awt.geom.Path2D> routeAll(java.util.Collection<Connection> connections)
java.awt.geom.Path2D route(AnchorPoint start, AnchorPoint end)
java.awt.geom.Path2D route(AnchorPoint start, java.awt.Point end)
void paintDebug(java.awt.Graphics2D g)