Draw2D v2.0

org.eclipse.draw2d
Class FanRouter

java.lang.Object
  |
  +--org.eclipse.draw2d.AbstractRouter
        |
        +--org.eclipse.draw2d.AutomaticRouter
              |
              +--org.eclipse.draw2d.FanRouter
All Implemented Interfaces:
ConnectionRouter

public class FanRouter
extends AutomaticRouter

Automatic router that spreads its Connections in a fan-like fashion upon collision.


Inner classes inherited from class org.eclipse.draw2d.ConnectionRouter
ConnectionRouter.NullConnectionRouter
 
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter
NULL
 
Constructor Summary
FanRouter()
           
 
Method Summary
 int getSeparation()
          Returns the colliding Connection's separation in pixels.
protected  void handleCollision(PointList points, int index)
           
 void setSeparation(int value)
          Sets the colliding Connection's separation in pixels.
 
Methods inherited from class org.eclipse.draw2d.AutomaticRouter
getConstraint, invalidate, next, remove, route, setConstraint, setEndPoints, setNextRouter
 
Methods inherited from class org.eclipse.draw2d.AbstractRouter
getEndPoint, getStartPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FanRouter

public FanRouter()
Method Detail

getSeparation

public int getSeparation()
Returns the colliding Connection's separation in pixels.
Since:
2.0

handleCollision

protected void handleCollision(PointList points,
                               int index)
Overrides:
handleCollision in class AutomaticRouter

setSeparation

public void setSeparation(int value)
Sets the colliding Connection's separation in pixels.
Since:
2.0

Draw2D v2.0