Package org.eclipse.draw2d
Class FanRouter
java.lang.Object
org.eclipse.draw2d.AbstractRouter
org.eclipse.draw2d.AutomaticRouter
org.eclipse.draw2d.FanRouter
- All Implemented Interfaces:
ConnectionRouter
Automatic router that spreads its
Connections
in a
fan-like fashion upon collision.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouter
ConnectionRouter.NullConnectionRouter
-
Field Summary
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the separation in pixels between fanned connections.protected void
handleCollision
(PointList points, int index) Modifies a given PointList that collides with some other PointList.void
setSeparation
(int value) Sets the collidingConnection'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
-
Constructor Details
-
FanRouter
public FanRouter()
-
-
Method Details
-
getSeparation
public int getSeparation()Returns the separation in pixels between fanned connections.- Returns:
- the separation
- Since:
- 2.0
-
handleCollision
Modifies a given PointList that collides with some other PointList. The given index indicates that this it the ith PointList in a group of colliding points.- Specified by:
handleCollision
in classAutomaticRouter
- Parameters:
points
- the colliding pointsindex
- the index
-
setSeparation
public void setSeparation(int value) Sets the collidingConnection's
separation in pixels.- Parameters:
value
- the separation- Since:
- 2.0
-