java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.routing.AbstractEdgeRouter
All Implemented Interfaces:
EdgeRouter
Direct Known Subclasses:
OrthogonalEdgeRouter

public abstract class AbstractEdgeRouter extends Object implements EdgeRouter
This edge router takes care of taking the anchor lead points into account and adjusting all points to be relative to the diagram.
  • Constructor Details

    • AbstractEdgeRouter

      public AbstractEdgeRouter()
  • Method Details

    • getBlockLocation

      protected abstract Point getBlockLocation(UUID id)
    • route

      public Path2D route(AnchorPoint start, AnchorPoint end)
      Description copied from interface: EdgeRouter
      Find a route starting and ending at an anchor point.
      Specified by:
      route in interface EdgeRouter
    • routeAll

      public List<Path2D> routeAll(Collection<Connection> connections)
      Description copied from interface: EdgeRouter
      Calculate routes for all connections
      Specified by:
      routeAll in interface EdgeRouter
    • route

      public Path2D route(AnchorPoint start, Point end)
      Description copied from interface: EdgeRouter
      Find a route starting at an anchor point and ending at any arbitrary point
      Specified by:
      route in interface EdgeRouter
    • route

      protected abstract List<Point> route(Point start, Point end, Point trueStart, Point trueEnd)
      Find the route from start to end. The "true" start and end points are provided for reference but should not be part of the route, and may be null depending on the type of route being created. (These points will be the "anchor" points whereas the start and end points are the lead points)