Class ObservableGeometryUtil

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

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

    • derivePoint Link icon

      @NotNull public static Observable<@Nullable Point> derivePoint(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Point from the given observable geometry by casting the geometry instance to a point instance.

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

      Notes:

      • When the observable geometry can not be cast to a point, the observable point instance will contain a null value.
      • When the observable geometry contains a null value, the observable point instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the point
      Returns:
      a derived Observable
    • derivePolyline Link icon

      @NotNull public static Observable<@Nullable Polyline> derivePolyline(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Polyline from the given observable geometry by casting the geometry instance to a polyline instance.

      This observable polyline will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a polyline, the observable polyline instance will contain a null value.
      • When the observable geometry contains a null value, the observable polyline instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the polyline
      Returns:
      a derived Observable
    • derivePolylineRing Link icon

      @NotNull public static Observable<@Nullable PolylineRing> derivePolylineRing(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable PolylineRing from the given observable geometry by casting the geometry instance to a polyline ring instance.

      This observable polyline ring will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a polyline ring, the observable polyline ring instance will contain a null value.
      • When the observable geometry contains a null value, the observable polyline ring instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the polyline ring
      Returns:
      a derived Observable
    • derivePatch Link icon

      @NotNull public static Observable<@Nullable Patch> derivePatch(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Patch from the given observable geometry by casting the geometry instance to a patch instance.

      This observable patch will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a patch, the observable patch instance will contain a null value.
      • When the observable geometry contains a null value, the observable patch instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the patch
      Returns:
      a derived Observable
    • deriveEllipse Link icon

      @NotNull public static Observable<@Nullable Ellipse> deriveEllipse(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Ellipse from the given observable geometry by casting the geometry instance to an ellipse instance.

      This observable ellipse will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a ellipse, the observable ellipse instance will contain a null value.
      • When the observable geometry contains a null value, the observable ellipse instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the ellipse
      Returns:
      a derived Observable
    • deriveCircleByCenterPoint Link icon

      @NotNull public static Observable<@Nullable CircleByCenterPoint> deriveCircleByCenterPoint(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CircleByCenterPoint from the given observable geometry by casting the geometry instance to a circle instance.

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

      Notes:

      • When the observable geometry can not be cast to a circle, the observable circle instance will contain a null value.
      • When the observable geometry contains a null value, the observable circle instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the circle
      Returns:
      a derived Observable
    • deriveArcBand Link icon

      @NotNull public static Observable<@Nullable ArcBand> deriveArcBand(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable ArcBand from the given observable geometry by casting the geometry instance to a ArcBand instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a ArcBand, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the ArcBand
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveBezierCurve Link icon

      @NotNull public static Observable<@Nullable BezierCurve> deriveBezierCurve(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable BezierCurve from the given observable geometry by casting the geometry instance to a BezierCurve instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a BezierCurve, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the BezierCurve
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCircleBy3Points Link icon

      @NotNull public static Observable<@Nullable CircleBy3Points> deriveCircleBy3Points(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CircleBy3Points from the given observable geometry by casting the geometry instance to a CircleBy3Points instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CircleBy3Points, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CircleBy3Points
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCircularArcBy3Points Link icon

      @NotNull public static Observable<@Nullable CircularArcBy3Points> deriveCircularArcBy3Points(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CircularArcBy3Points from the given observable geometry by casting the geometry instance to a CircularArcBy3Points instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CircularArcBy3Points, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CircularArcBy3Points
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCircularArcByBulge Link icon

      @NotNull public static Observable<@Nullable CircularArcByBulge> deriveCircularArcByBulge(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CircularArcByBulge from the given observable geometry by casting the geometry instance to a CircularArcByBulge instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CircularArcByBulge, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CircularArcByBulge
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCircularArcByCenterPoint Link icon

      @NotNull public static Observable<@Nullable CircularArcByCenterPoint> deriveCircularArcByCenterPoint(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CircularArcByCenterPoint from the given observable geometry by casting the geometry instance to a CircularArcByCenterPoint instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CircularArcByCenterPoint, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CircularArcByCenterPoint
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveEllipticalArc Link icon

      @NotNull public static Observable<@Nullable EllipticalArc> deriveEllipticalArc(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable EllipticalArc from the given observable geometry by casting the geometry instance to a EllipticalArc instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a EllipticalArc, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the EllipticalArc
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveLine Link icon

      @NotNull public static Observable<@Nullable Line> deriveLine(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Line from the given observable geometry by casting the geometry instance to a Line instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a Line, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the Line
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • derivePolygon Link icon

      @NotNull public static Observable<@Nullable Polygon> derivePolygon(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Polygon from the given observable geometry by casting the geometry instance to a Polygon instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a Polygon, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the Polygon
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCompositeCurve Link icon

      @NotNull public static Observable<@Nullable CompositeCurve> deriveCompositeCurve(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CompositeCurve from the given observable geometry by casting the geometry instance to a CompositeCurve instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CompositeCurve, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CompositeCurve
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCompositePatch Link icon

      @NotNull public static Observable<@Nullable CompositePatch> deriveCompositePatch(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CompositePatch from the given observable geometry by casting the geometry instance to a CompositePatch instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CompositePatch, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CompositePatch
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCompositeRing Link icon

      @NotNull public static Observable<@Nullable CompositeRing> deriveCompositeRing(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable CompositeRing from the given observable geometry by casting the geometry instance to a CompositeRing instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a CompositeRing, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the CompositeRing
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveCurve Link icon

      @NotNull public static Observable<@Nullable Curve> deriveCurve(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Curve from the given observable geometry by casting the geometry instance to a Curve instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a Curve, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the Curve
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveExtrudedGeometry Link icon

      @NotNull public static Observable<@Nullable ExtrudedGeometry> deriveExtrudedGeometry(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable ExtrudedGeometry from the given observable geometry by casting the geometry instance to a ExtrudedGeometry instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a ExtrudedGeometry, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the ExtrudedGeometry
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveMultiGeometry Link icon

      @NotNull public static Observable<@Nullable MultiGeometry> deriveMultiGeometry(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable MultiGeometry from the given observable geometry by casting the geometry instance to a MultiGeometry instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a MultiGeometry, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the MultiGeometry
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveRing Link icon

      @NotNull public static Observable<@Nullable Ring> deriveRing(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Ring from the given observable geometry by casting the geometry instance to a Ring instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a Ring, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the Ring
      Returns:
      a derived Observable
      Since:
      2023.1.02
    • deriveSurface Link icon

      @NotNull public static Observable<@Nullable Surface> deriveSurface(@NotNull Observable<@Nullable Geometry> observableGeometry)
      Derives an Observable Surface from the given observable geometry by casting the geometry instance to a Surface instance.

      This new observable will be updated when the given observable geometry changes.

      Notes:

      • When the observable geometry can not be cast to a Surface, the new observable instance will contain a null value.
      • When the observable geometry contains a null value, the new observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observableGeometry - an observable geometry from which to derive the Surface
      Returns:
      a derived Observable
      Since:
      2023.1.02