Package com.luciad.layers.features
Class FeatureStateManager.Change
java.lang.Object
com.luciad.layers.features.FeatureStateManager.Change
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureStateManager
This class is used to build feature state changes.
One instance of this class represents an atomic feature state change operation that will result in exactly 1 FeatureStateEvent.
See FeatureStateManager for a usage example.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearState(FeatureState featureState) Clear the given feature state.voidclose()static FeatureStateManager.Changecreate()Returns a new, empty,FeatureStateManager.Change.protected voidfinalize()voidsetState(LayerFeatureId layerFeatureId, FeatureState featureState, boolean enabled) Sets the given state for the given feature identifier.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
create
Returns a new, empty,FeatureStateManager.Change.- Returns:
- a new, empty,
FeatureStateManager.Change.
-
setState
public void setState(@NotNull LayerFeatureId layerFeatureId, @NotNull FeatureState featureState, boolean enabled) Sets the given state for the given feature identifier.- Parameters:
layerFeatureId- the feature for which to modify the statefeatureState- the feature state to modifyenabled- true to enable the feature state, and false to disable it
-
clearState
Clear the given feature state.As a result, no single feature will have the given feature state enabled.
- Parameters:
featureState- the feature state to clear
-