Class ObservablePatchUtil

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

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

    • deriveBaseGeometry Link icon

      @NotNull public static Observable<@Nullable Geometry> deriveBaseGeometry(@NotNull Observable<@Nullable Patch> observablePatch)
      Derives an Observable from the given observable patch that represents the base of the patch.

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

      Notes:

      • When the observable patch contains a null value, the observable ring instance will contain a null value too.
      • Observable#setValue will throw an exception for derived instances.
      Parameters:
      observablePatch - an observable patch from which to derive the base geometry
      Returns:
      a derived Observable