Package org.eclipse.gef.fx.nodes
Class StraightRouter
java.lang.Object
org.eclipse.gef.fx.nodes.AbstractRouter
org.eclipse.gef.fx.nodes.StraightRouter
- All Implemented Interfaces:
- IConnectionRouter
The 
StraightRouter is an IConnectionRouter that leaves the
 Connection's control points untouched and only provides reference
 points for the Connection's anchors.- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.gef.fx.nodes.AbstractRouterAbstractRouter.ControlPointManipulator, AbstractRouter.VolatileStaticAnchor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected PointgetAnchoredReferencePoint(List<Point> points, int index) Returns the reference point for the anchor at the given index.Methods inherited from class org.eclipse.gef.fx.nodes.AbstractRoutercreateControlPointManipulator, getAnchorageGeometry, getConnection, insertRouterAnchors, removeVolatileAnchors, route, route, updateComputationParameters, updateComputationParameters, wasInserted
- 
Constructor Details- 
StraightRouterpublic StraightRouter()
 
- 
- 
Method Details- 
getAnchoredReferencePointReturns the reference point for the anchor at the given index.- Specified by:
- getAnchoredReferencePointin class- AbstractRouter
- Parameters:
- index- The index specifying the anchor for which to provide a reference point.
- points- The list of- Points from which the- Connectionis currently constituted.
- Returns:
- The reference point for the anchor at the given index within the local coordinate system of the anchored, which is the Connection's curve.
 
 
-