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, long index) Derives anObservablePointfrom the given observable Bézier curve that represents the control point at the given index.static Observable<@Nullable Point> deriveEndPoint(Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservablePointfrom the given observable Bézier curve that represents the end point.static Observable<@Nullable Point> deriveStartPoint(Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservablePointfrom the given observable Bézier curve that represents the start point.
-
Method Details
-
deriveStartPoint
@NotNull public static Observable<@Nullable Point> deriveStartPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservablePointfrom the given observable Bézier curve that represents the start point.This observable point will be updated when the given observable Bézier curve changes.
Notes:
- When the observable Bézier curve contains a
nullvalue, the observable point instance will contain anullvalue too. Observable#setValuewill throw an exception for derived instances.
- Parameters:
observableBezierCurve- an observable Bézier curve from which to derive the point- Returns:
- a derived
Observable
- When the observable Bézier curve contains a
-
deriveControlPoint
@NotNull public static Observable<@Nullable Point> deriveControlPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve, long index) Derives anObservablePointfrom the given observable Bézier curve that represents the control point at the given index.See
BezierCurve#getControlPointto see which indices are valid.This observable point will be updated when the given observable Bézier curve changes.
Notes:
- When the observable Bézier curve contains a
nullvalue, the observable point instance will contain anullvalue too. - When the given index >= point count, the observable point instance will contain a
nullvalue. Observable#setValuewill throw an exception for derived instances.
- Parameters:
observableBezierCurve- an observable Bézier curve from which to derive the pointindex- the index of the control point- Returns:
- a derived
Observable
- When the observable Bézier curve contains a
-
deriveEndPoint
@NotNull public static Observable<@Nullable Point> deriveEndPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve) Derives anObservablePointfrom the given observable Bézier curve that represents the end point.This observable point will be updated when the given observable Bézier curve changes.
Notes:
- When the observable Bézier curve contains a
nullvalue, the observable point instance will contain anullvalue too. Observable#setValuewill throw an exception for derived instances.
- Parameters:
observableBezierCurve- an observable Bézier curve from which to derive the point- Returns:
- a derived
Observable
- When the observable Bézier curve contains a
-