Interface IPolylineRingConstraint
public interface IPolylineRingConstraint
A constraint on
PolylineRing.
This can be configured on a PolylineRingHandlesProvider.
-
Method Summary
Modifier and TypeMethodDescriptionapply(PolylineRing polylineRing) Applies this constraint on a polyline ring without a (known) change.apply(PolylineRing oldPolylineRing, PolylineRing newPolylineRing, PolylineChange changes) Applies this constraint on a pending change.
-
Method Details
-
apply
@NotNull PolylineRing apply(@NotNull PolylineRing oldPolylineRing, @NotNull PolylineRing newPolylineRing, @NotNull PolylineChange changes) Applies this constraint on a pending change.- Parameters:
oldPolylineRing- the base polyline ring on which the change is performed, cannot benull.newPolylineRing- the result of the change, without any constraints applied, cannot benull.changes- the change that was applied.- Returns:
- the resulting polyline ring, after applying this constraint on the pending change. Cannot be
null. If the constraint does not apply, simply return thenewPolylineRing.
-
apply
Applies this constraint on a polyline ring without a (known) change.- Parameters:
polylineRing- the polyline ring to constrain, cannot benull.- Returns:
- the resulting polyline ring, after applying this constraint. If the constraint does not apply, simply return the
polylineRing. Cannot benull.
-