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
public class StraightRouter extends AbstractRouter
TheStraightRouter
is anIConnectionRouter
that leaves theConnection
's control points untouched and only provides reference points for theConnection
's anchors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.gef.fx.nodes.AbstractRouter
AbstractRouter.ControlPointManipulator, AbstractRouter.VolatileStaticAnchor
-
-
Constructor Summary
Constructors Constructor Description StraightRouter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Point
getAnchoredReferencePoint(java.util.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.AbstractRouter
createControlPointManipulator, getAnchorageGeometry, getConnection, insertRouterAnchors, removeVolatileAnchors, route, route, updateComputationParameters, updateComputationParameters, wasInserted
-
-
-
-
Method Detail
-
getAnchoredReferencePoint
protected Point getAnchoredReferencePoint(java.util.List<Point> points, int index)
Returns the reference point for the anchor at the given index.- Specified by:
getAnchoredReferencePoint
in classAbstractRouter
- Parameters:
index
- The index specifying the anchor for which to provide a reference point.points
- The list ofPoint
s from which theConnection
is 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.
-
-