public interface IPointConstraint
Point
editing.
This can for example be configured on a PointHandlesProvider
.
Modifier and Type | Method and Description |
---|---|
Point |
apply(Point point)
Applies this constraint on a point without a (known) change.
|
Point |
apply(Point oldPoint,
Point newPoint,
PointChange change)
Applies this constraint on a pending change.
|
@NotNull Point apply(@NotNull Point oldPoint, @NotNull Point newPoint, @NotNull PointChange change)
oldPoint
- the base Point
on which the change is performed, cannot be null
.newPoint
- the result of the change, without any constraints applied, cannot be null
.change
- the change that was applied.Point
, after applying this constraint on the pending change. If the constraint does not apply, simply return the newPoint
. Cannot be null
.@NotNull Point apply(@NotNull Point point)
point
- the point to constrain, cannot be null
.point
. Cannot be null
.