public static interface ILinkRouteBuilder.BendPoints
ILinkRouteBuilder at bend points state.
User may add bend points or fixed bend points using the helper methods.
Finish and apply the route with apply().
| Modifier and Type | Method and Description |
|---|---|
ILinkRouteBuilder.BendPoints |
addBendPoint(Point loc)
Create a new bend point.
|
default ILinkRouteBuilder.BendPoints |
addBendPoints(java.util.Collection<Point> points)
Add many bend points at once.
|
ILinkRouteBuilder.BendPoints |
addFixedPoint(Point loc)
Create a new fixed bend point.
|
default ILinkRouteBuilder.BendPoints |
addFixedPoints(java.util.Collection<Point> points)
Add many fixed bend points at once.
|
ILinkRouteBuilder.BendPoints |
addHorizontalSegment(int nextBendPointX,
boolean fixed)
Add one horizontal segment with y aligned with previous point.
|
ILinkRouteBuilder.BendPoints |
addVerticalSegment(int nextBendPointY,
boolean fixed)
Add one vertical segment with x aligned with previous point.
|
void |
apply()
Build the route and apply it to the connection it was created from.
|
ILinkRouteBuilder.BendPoints |
finishHorizontalThenVertical(boolean fixed)
Add 2 segment : one horizontal with y aligned with previous point,
one vertical with x aligned with target anchor.
|
ILinkRouteBuilder.BendPoints |
finishVerticalThenHorizontal(boolean fixed)
Add 2 segment : one vertical with x aligned with previous point,
one horizontal with y aligned with target anchor.
|
java.util.List<ILinkPoint> |
getAllPoints()
Get a direct access to all points of the connection.
|
java.util.List<ILinkPoint> getAllPoints()
The returned list is a direct reference, modifying it modifies the ILinkRoute.
It does not modify the connection from which this path was built.
The path must be applied to the IDiagramLink.setRoute(ILinkRoute).
ILinkRouteBuilder.BendPoints addBendPoint(Point loc)
loc - the point locationILinkRouteBuilder.BendPoints addFixedPoint(Point loc)
loc - the point locationILinkRouteBuilder.BendPoints addHorizontalSegment(int nextBendPointX, boolean fixed)
nextBendPointX - the bend point X position.fixed - true to make the bend point is fixed.ILinkRouteBuilder.BendPoints addVerticalSegment(int nextBendPointY, boolean fixed)
nextBendPointY - the bend point Y position.fixed - true to make the bend point is fixed.ILinkRouteBuilder.BendPoints finishHorizontalThenVertical(boolean fixed)
You should call apply() after this method.
fixed - true to make the bend point is fixed.ILinkRouteBuilder.BendPoints finishVerticalThenHorizontal(boolean fixed)
You should call apply() after this method.
fixed - true to make the bend point is fixed.void apply()
default ILinkRouteBuilder.BendPoints addBendPoints(java.util.Collection<Point> points)
points - the bend points locations.default ILinkRouteBuilder.BendPoints addFixedPoints(java.util.Collection<Point> points)
points - the bend points locations.