Class ObservableBezierCurveUtil

java.lang.Object
com.luciad.geometries.observable.ObservableBezierCurveUtil

public final class ObservableBezierCurveUtil extends Object
This class provides utility methods for Observable instances of BezierCurve.
Since:
2023.1.02
  • Method Details

    • deriveStartPoint

      @NotNull public static Observable<@Nullable Point> deriveStartPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve)
      Derives an Observable Point from 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 null value, the observable point instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableBezierCurve - an observable Bézier curve from which to derive the point
      Returns:
      a derived Observable
    • deriveControlPoint

      @NotNull public static Observable<@Nullable Point> deriveControlPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve, long index)
      Derives an Observable Point from the given observable Bézier curve that represents the control point at the given index.

      See BezierCurve#getControlPoint to 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 null value, the observable point instance will contain a null value too.
      • When the given index >= point count, the observable point instance will contain a null value.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableBezierCurve - an observable Bézier curve from which to derive the point
      index - the index of the control point
      Returns:
      a derived Observable
    • deriveEndPoint

      @NotNull public static Observable<@Nullable Point> deriveEndPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve)
      Derives an Observable Point from 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 null value, the observable point instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableBezierCurve - an observable Bézier curve from which to derive the point
      Returns:
      a derived Observable