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 SummaryAll 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- 
setupvoid setup(java.util.Map<java.util.UUID,java.awt.Rectangle> obstacles) Sets up the edge router with the obstacles to avoid
 - 
routeAlljava.util.List<java.awt.geom.Path2D> routeAll(java.util.Collection<Connection> connections) Calculate routes for all connections
 - 
routejava.awt.geom.Path2D route(AnchorPoint start, AnchorPoint end) Find a route starting and ending at an anchor point.
 - 
routejava.awt.geom.Path2D route(AnchorPoint start, java.awt.Point end) Find a route starting at an anchor point and ending at any arbitrary point
 - 
paintDebugvoid paintDebug(java.awt.Graphics2D g) Optional. An opportunity to paint debug info. Turned on with -DEdgeRouter.DebugPaint=true
 
- 
 
-