public final class FeatureStateEvent extends Object implements AutoCloseable
IFeatureStateObserver
to pass information about FeatureState
changes.
It allows you to inspect which features have been changed, and their new values. One call to FeatureStateManager#applyStateChange
will result in one FeatureStateEvent
instance.
See FeatureStateManager
for a usage example.
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
boolean |
getChange(FeatureState featureState,
LayerFeatureId layerFeatureId)
Returns the new value of the feature state for the given feature.
|
List<LayerFeatureId> |
getChangedFeatures(FeatureState featureState)
Returns the list of features for which the given feature state has been changed.
|
List<FeatureState> |
getChangedFeatureStates()
Returns the list of feature states that has been changed for at least one
Feature in this event. |
public void close()
close
in interface AutoCloseable
@NotNull public List<FeatureState> getChangedFeatureStates()
Feature
in this event.Feature
in this event.@NotNull public List<LayerFeatureId> getChangedFeatures(@NotNull FeatureState featureState)
featureState
- a feature statepublic boolean getChange(@NotNull FeatureState featureState, @NotNull LayerFeatureId layerFeatureId)
featureState
- a feature statelayerFeatureId
- a feature