public class StraightRouter extends AbstractRouter
StraightRouter
is an IConnectionRouter
that leaves the
Connection
's control points untouched and only provides reference
points for the Connection
's anchors.AbstractRouter.ControlPointManipulator, AbstractRouter.VolatileStaticAnchor
Constructor and Description |
---|
StraightRouter() |
Modifier and Type | Method and Description |
---|---|
protected Point |
getAnchoredReferencePoint(java.util.List<Point> points,
int index)
Returns the reference point for the anchor at the given index.
|
createControlPointManipulator, getAnchorageGeometry, getConnection, insertRouterAnchors, removeVolatileAnchors, route, route, updateComputationParameters, updateComputationParameters, wasInserted
protected Point getAnchoredReferencePoint(java.util.List<Point> points, int index)
getAnchoredReferencePoint
in class AbstractRouter
index
- The index specifying the anchor for which to provide a
reference point.points
- The list of Point
s from which the Connection
is currently constituted.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.