Package com.luciad.layers.features
Class FeatureStateEvent
java.lang.Object
com.luciad.layers.features.FeatureStateEvent
- All Implemented Interfaces:
AutoCloseable
This class is used by
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()booleangetChange(FeatureState featureState, LayerFeatureId layerFeatureId) Returns the new value of the feature state for the given feature.List<@NotNull LayerFeatureId> getChangedFeatures(FeatureState featureState) Returns the list of features for which the given feature state has been changed.List<@NotNull FeatureState> Returns the list of feature states that has been changed for at least oneFeaturein this event.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getChangedFeatureStates
Returns the list of feature states that has been changed for at least oneFeaturein this event.- Returns:
- the list of feature states that has been changed for at least one
Featurein this event.
-
getChangedFeatures
@NotNull public List<@NotNull LayerFeatureId> getChangedFeatures(@NotNull FeatureState featureState) Returns the list of features for which the given feature state has been changed.- Parameters:
featureState- a feature state- Returns:
- the list of features for which the given feature state has been changed.
-
getChange
public boolean getChange(@NotNull FeatureState featureState, @NotNull LayerFeatureId layerFeatureId) Returns the new value of the feature state for the given feature.- Parameters:
featureState- a feature statelayerFeatureId- a feature- Returns:
- the new value of the feature state for the given feature.
-