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 Link icon

    • deriveStartPoint Link icon

      @NotNull public static Observable<@Nullable Point> deriveStartPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve)
      Derives an Observable 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 a null 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
    • deriveControlPoint Link icon

      @NotNull public static Observable<@Nullable Point> deriveControlPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve)
      Derives an Observable 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 a null 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
    • deriveEndPoint Link icon

      @NotNull public static Observable<@Nullable Point> deriveEndPoint(@NotNull Observable<@Nullable BezierCurve> observableBezierCurve)
      Derives an Observable 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 a null 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