All Known Implementing Classes:
AbstractEdgeRouter, OrthogonalEdgeRouter

public interface EdgeRouter
Implementations of this are used to find a connector route between two AnchorPoints, routed between a set of obstacles
  • Method Details

    • setup

      void setup(Map<UUID,Rectangle> obstacles)
      Sets up the edge router with the obstacles to avoid
    • routeAll

      List<Path2D> routeAll(Collection<Connection> connections)
      Calculate routes for all connections
    • route

      Path2D route(AnchorPoint start, AnchorPoint end)
      Find a route starting and ending at an anchor point.
    • route

      Path2D route(AnchorPoint start, Point end)
      Find a route starting at an anchor point and ending at any arbitrary point
    • paintDebug

      void paintDebug(Graphics2D g)
      Optional. An opportunity to paint debug info. Turned on with -DEdgeRouter.DebugPaint=true