Package com.luciad.geometries.observable
Class ObservableBezierCurveUtil
java.lang.Object
com.luciad.geometries.observable.ObservableBezierCurveUtil
This class provides utility methods for
Observable
instances of BezierCurve
.- Since:
- 2023.1.02
-
Method Summary
Modifier and TypeMethodDescriptionstatic Observable
<@Nullable Point> deriveControlPoint
(Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the control point.static Observable
<@Nullable Point> deriveEndPoint
(Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the end point.static Observable
<@Nullable Point> deriveStartPoint
(Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the start point.
-
Method Details
-
deriveStartPoint
@NotNull public static Observable<@Nullable Point> deriveStartPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the start point.This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
null
value, the observable point instance will contain anull
value too. Observable#setValue
will throw an exception for derived instances.
- Parameters:
observableBezierCurve
- an observable bezier curve from which to derive the point- Returns:
- a derived
Observable
- When the observable bezier curve contains a
-
deriveControlPoint
@NotNull public static Observable<@Nullable Point> deriveControlPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the control point.This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
null
value, the observable point instance will contain anull
value too. Observable#setValue
will throw an exception for derived instances.
- Parameters:
observableBezierCurve
- an observable bezier curve from which to derive the point- Returns:
- a derived
Observable
- When the observable bezier curve contains a
-
deriveEndPoint
@NotNull public static Observable<@Nullable Point> deriveEndPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservable
Point
from the given observable bezier curve that represents the end point.This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
null
value, the observable point instance will contain anull
value too. Observable#setValue
will throw an exception for derived instances.
- Parameters:
observableBezierCurve
- an observable bezier curve from which to derive the point- Returns:
- a derived
Observable
- When the observable bezier curve contains a
-