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 SummaryNested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouterConnectionRouter.NullConnectionRouter
- 
Field SummaryFields inherited from interface org.eclipse.draw2d.ConnectionRouterNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the separation in pixels between fanned connections.protected voidhandleCollision(PointList points, int index) Modifies a given PointList that collides with some other PointList.voidsetSeparation(int value) Sets the collidingConnection'sseparation in pixels.Methods inherited from class org.eclipse.draw2d.AutomaticRoutergetConstraint, invalidate, next, remove, route, setConstraint, setEndPoints, setNextRouterMethods inherited from class org.eclipse.draw2d.AbstractRoutergetEndPoint, getStartPoint
- 
Constructor Details- 
FanRouterpublic FanRouter()
 
- 
- 
Method Details- 
getSeparationpublic int getSeparation()Returns the separation in pixels between fanned connections.- Returns:
- the separation
- Since:
- 2.0
 
- 
handleCollisionModifies 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:
- handleCollisionin class- AutomaticRouter
- Parameters:
- points- the colliding points
- index- the index
 
- 
setSeparationpublic void setSeparation(int value) Sets the collidingConnection'sseparation in pixels.- Parameters:
- value- the separation
- Since:
- 2.0
 
 
-