Class ObservablePolygonUtil

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

public final class ObservablePolygonUtil extends Object
This class provides utility methods for Observable instance for Polygon.
Since:
2024.1
  • Method Details

    • deriveExteriorPolylineRing

      @NotNull public static Observable<@Nullable Geometry> deriveExteriorPolylineRing(@NotNull Observable<@Nullable Polygon> observablePolygon)
      Derives an Observable from the given observable polygon that represents the exterior ring of the polygon.

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

      Notes:

      • When the observable polygon contains a null value, the returned observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observablePolygon - an observable polygon from which to derive the exterior polyline ring
      Returns:
      a derived Observable
    • deriveInteriorPolylineRing

      @NotNull public static Observable<@Nullable Geometry> deriveInteriorPolylineRing(@NotNull Observable<@Nullable Polygon> observablePolygon, long index)
      Derives an Observable from the given observable polygon that represents an interior ring of the polygon.

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

      Notes:

      • When the observable polygon contains a null value, the returned observable instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observablePolygon - an observable polygon from which to derive the interior polyline ring
      index - the index of the interior ring
      Returns:
      a derived Observable