Interface IPointConstraint
public interface IPointConstraint
A constraint on
Point
editing.
This can for example be configured on a PointHandlesProvider
.
-
Method Summary
-
Method Details
-
apply
Applies this constraint on a pending change.- Parameters:
oldPoint
- the basePoint
on which the change is performed, cannot benull
.newPoint
- the result of the change, without any constraints applied, cannot benull
.change
- the change that was applied.- Returns:
- the resulting
Point
, after applying this constraint on the pending change. If the constraint does not apply, simply return thenewPoint
. Cannot benull
.
-
apply
Applies this constraint on a point without a (known) change.- Parameters:
point
- the point to constrain, cannot benull
.- Returns:
- the resulting point, after applying this constraint. If the constraint does not apply, simply return the
point
. Cannot benull
.
-