Class ObservableCircleByCenterPointUtil

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

public final class ObservableCircleByCenterPointUtil extends Object
This class provides utility methods for Observable instance for CircleByCenterPoint.
  • Method Details Link icon

    • deriveCenter Link icon

      @NotNull public static Observable<@Nullable Point> deriveCenter(@NotNull Observable<@Nullable CircleByCenterPoint> observableCircle)
      Derives an Observable Point from the given observable circle that represents the center point.

      This observable point will be updated when the given observable circle changes.

      Notes:

      • When the observable circle contains a null value, the observable center point instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableCircle - an observable circle from which to derive the center
      Returns:
      a derived Observable
    • derivePointAtAngle Link icon

      @NotNull public static Observable<@Nullable Point> derivePointAtAngle(@NotNull Observable<@Nullable CircleByCenterPoint> observableCircle, @NotNull Angle angle)
      Derives an Observable Point from the given observable circle that represents the point at the given angle.

      This observable point will be updated when the given observable circle changes.

      Notes:

      • When the observable circle contains a null value, the observable point instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableCircle - an observable circle from which to derive the point
      angle - the angle at which to derive the point. For example: an angle of 0 will result in the point on the right of the major axis. An angle of 90 will result in the point a the top of the minor axis.
      Returns:
      a derived Observable