public final class ObservableFeatureUtil extends Object
Observable
instance for Feature
.Modifier and Type | Method and Description |
---|---|
static Observable<Geometry> |
deriveGeometry(Observable<Feature> observableFeature,
IFeatureGeometryProvider geometryProvider)
Derives an
Observable Geometry from the given observable feature. |
@NotNull public static Observable<Geometry> deriveGeometry(@NotNull Observable<Feature> observableFeature, @NotNull IFeatureGeometryProvider geometryProvider) throws NullPointerException
Observable
Geometry
from the given observable feature.
This observable geometry will be updated when the given observable feature is updated.
Notes:
IFeatureGeometryProvider
, an Observable
instance will be created with a null
value.
null
value can also be set on an existing Observable
Geometry
instance after Observable
Feature
changes, and no geometry instance can be derived.
Observable#setValue
will throw an exception for derived instances.
observableFeature
- an observable feature from which to derive a geometry. Cannot be null
.geometryProvider
- the geometry provider used to extract a geometry from the feature. This provider is used initially, and when the given ObservableFeature changes. Cannot be null
.Observable
NullPointerException
- when passing null
values.