Interface ICircleByCenterPointConstraint
public interface ICircleByCenterPointConstraint
A constraint on
CircleByCenterPoint
editing.
This can for example be configured on a CircleByCenterPointHandlesProvider
.
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptionapply
(CircleByCenterPoint circle) Applies this constraint on a circle without a (known) change.apply
(CircleByCenterPoint oldCircle, CircleByCenterPoint newCircle, CircleByCenterPointChange change) Applies this constraint on a pending change.
-
Method Details
-
apply
@NotNull CircleByCenterPoint apply(@NotNull CircleByCenterPoint oldCircle, @NotNull CircleByCenterPoint newCircle, @NotNull CircleByCenterPointChange change) Applies this constraint on a pending change.- Parameters:
oldCircle
- The base circle on which the change is performed, cannot benull
.newCircle
- The result of the change, without any constraints applied, cannot benull
.change
- The change that was applied.- Returns:
- The resulting circle, after applying this constraint on the pending change. If the constraint does not apply, simply return the
newCircle
. Cannot benull
.
-
apply
Applies this constraint on a circle without a (known) change.- Parameters:
circle
- The circle to constrain, cannot benull
.- Returns:
- The resulting circle, after applying this constraint. If the constraint does not apply, simply return the
circle
. Cannot benull
.
-