Interface IPolylineConstraint
public interface IPolylineConstraint
A constraint on
Polyline
editing.
This can for example be configured on a PolylineHandlesProvider
.
-
Method Summary
-
Method Details
-
apply
@NotNull Polyline apply(@NotNull Polyline oldPolyline, @NotNull Polyline newPolyline, @NotNull PolylineChange changes) Applies this constraint on a pending change.- Parameters:
oldPolyline
- the base polyline on which the change is performed, cannot benull
.newPolyline
- the result of the change, without any constraints applied, cannot benull
.changes
- the change that was applied.- Returns:
- the resulting polyline, after applying this constraint on the pending change. If the constraint does not apply, simply return the
newPolyline
. Cannot benull
.
-
apply
Applies this constraint on a polyline without a (known) change.- Parameters:
polyline
- the polyline to constrain, cannot benull
.- Returns:
- the resulting polyline, after applying this constraint. If the constraint does not apply, simply return the
polyline
. Cannot benull
.
-