Package com.luciad.geometries.observable
Class ObservablePatchUtil
java.lang.Object
com.luciad.geometries.observable.ObservablePatchUtil
This class provides utility methods for
Observable
instance for Patch
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Observable
<@Nullable Geometry> deriveBaseGeometry
(Observable<@Nullable Patch> observablePatch) Derives anObservable
from the given observable patch that represents the base of the patch.
-
Method Details
-
deriveBaseGeometry
@NotNull public static Observable<@Nullable Geometry> deriveBaseGeometry(@NotNull Observable<@Nullable Patch> observablePatch) Derives anObservable
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 anull
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
- When the observable patch contains a
-