Interface EdgeRouter
-
- All Known Implementing Classes:
AbstractEdgeRouter,OrthogonalEdgeRouter
public interface EdgeRouterImplementations of this are used to find a connector route between two AnchorPoints, routed between a set of obstacles
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpaintDebug(java.awt.Graphics2D g)Optional.java.awt.geom.Path2Droute(AnchorPoint start, AnchorPoint end)Find a route starting and ending at an anchor point.java.awt.geom.Path2Droute(AnchorPoint start, java.awt.Point end)Find a route starting at an anchor point and ending at any arbitrary pointjava.util.List<java.awt.geom.Path2D>routeAll(java.util.Collection<Connection> connections)Calculate routes for all connectionsvoidsetup(java.util.Map<java.util.UUID,java.awt.Rectangle> obstacles)Sets up the edge router with the obstacles to avoid
-
-
-
Method Detail
-
setup
void setup(java.util.Map<java.util.UUID,java.awt.Rectangle> obstacles)
Sets up the edge router with the obstacles to avoid
-
routeAll
java.util.List<java.awt.geom.Path2D> routeAll(java.util.Collection<Connection> connections)
Calculate routes for all connections
-
route
java.awt.geom.Path2D route(AnchorPoint start, AnchorPoint end)
Find a route starting and ending at an anchor point.
-
route
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
-
paintDebug
void paintDebug(java.awt.Graphics2D g)
Optional. An opportunity to paint debug info. Turned on with -DEdgeRouter.DebugPaint=true
-
-