public interface ILinkPath
Modifier and Type | Method and Description |
---|---|
java.util.List<Point> |
getPoints()
Get all bend points of the connection.
|
void |
movePoint(int index,
int x,
int y)
Change the coordinates of a specific bend point of the connection.
|
void |
movePoint(int index,
Point point)
Change the coordinates of a specific bend point of the connection.
|
void |
removePoint(int index)
Removes the point at the specified position in this point list.
|
void |
setPoints(java.util.Collection<Point> points)
Discards all points from the point list, then add all specified points in it.
|
java.util.List<Point> getPoints()
The returned list is a copy and can be freely be modified.
To apply changes to the returned list, call setPoints(Collection)
with the returned
list as parameter.
void removePoint(int index)
Shifts any subsequent elements to the left (subtracts one from their indices).
index
- the index of the element to be removed.void setPoints(java.util.Collection<Point> points)
points
- the new point list for this connection.void movePoint(int index, Point point)
index
- the index of the point to move in the point list.point
- the new coordinates for this point.void movePoint(int index, int x, int y)
index
- the index of the point to move in the point list.x
- the new x coordinatey
- the new y coordinate