Class AutomaticRouter

java.lang.Object
org.eclipse.draw2d.AbstractRouter
org.eclipse.draw2d.AutomaticRouter
All Implemented Interfaces:
ConnectionRouter
Direct Known Subclasses:
FanRouter

public abstract class AutomaticRouter extends AbstractRouter
An abstract router implementation which detects when multiple connections are overlapping. Two connections overlap if the combination of source and target anchors are equal. Subclasses must implement handleCollision(PointList, int) to determine how to avoid the overlap.

This router can delegate to another connection router. The wrappered router will route the connections first, after which overlapping will be determined.