Class AbstractEdgeRouter
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.blockandconnector.routing.AbstractEdgeRouter
 
- 
- All Implemented Interfaces:
- EdgeRouter
 - Direct Known Subclasses:
- OrthogonalEdgeRouter
 
 public abstract class AbstractEdgeRouter extends java.lang.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.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractEdgeRouter.RoundedPathMakerPath maker that uses rounded cornersstatic classAbstractEdgeRouter.SimplePathMakerBasic path maker that just uses straight line segments
 - 
Constructor SummaryConstructors Constructor Description AbstractEdgeRouter()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.awt.PointgetBlockLocation(java.util.UUID id)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 pointprotected abstract java.util.List<java.awt.Point>route(java.awt.Point start, java.awt.Point end, java.awt.Point trueStart, java.awt.Point trueEnd)Find the route from start to end.java.util.List<java.awt.geom.Path2D>routeAll(java.util.Collection<Connection> connections)Calculate routes for all connections- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.designer.blockandconnector.routing.EdgeRouterpaintDebug, setup
 
- 
 
- 
- 
- 
Method Detail- 
getBlockLocationprotected abstract java.awt.Point getBlockLocation(java.util.UUID id) 
 - 
routepublic java.awt.geom.Path2D route(AnchorPoint start, AnchorPoint end) Description copied from interface:EdgeRouterFind a route starting and ending at an anchor point.- Specified by:
- routein interface- EdgeRouter
 
 - 
routeAllpublic java.util.List<java.awt.geom.Path2D> routeAll(java.util.Collection<Connection> connections) Description copied from interface:EdgeRouterCalculate routes for all connections- Specified by:
- routeAllin interface- EdgeRouter
 
 - 
routepublic java.awt.geom.Path2D route(AnchorPoint start, java.awt.Point end) Description copied from interface:EdgeRouterFind a route starting at an anchor point and ending at any arbitrary point- Specified by:
- routein interface- EdgeRouter
 
 - 
routeprotected abstract java.util.List<java.awt.Point> route(java.awt.Point start, java.awt.Point end, java.awt.Point trueStart, java.awt.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)
 
- 
 
-