Interface IPolylineRingConstraint


public interface IPolylineRingConstraint
A constraint on PolylineRing.

This can be configured on a PolylineRingHandlesProvider.

  • Method Details Link icon

    • apply Link icon

      @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 be null.
      newPolylineRing - the result of the change, without any constraints applied, cannot be null.
      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 the newPolylineRing.
    • apply Link icon

      @NotNull PolylineRing apply(@NotNull PolylineRing polylineRing)
      Applies this constraint on a polyline ring without a (known) change.
      Parameters:
      polylineRing - the polyline ring to constrain, cannot be null.
      Returns:
      the resulting polyline ring, after applying this constraint. If the constraint does not apply, simply return the polylineRing. Cannot be null.