Class FeatureStateManager.Change

java.lang.Object
com.luciad.layers.features.FeatureStateManager.Change
All Implemented Interfaces:
AutoCloseable
Enclosing class:
FeatureStateManager

public static final class FeatureStateManager.Change extends Object implements AutoCloseable
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 Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • create Link icon

      @NotNull public static FeatureStateManager.Change create()
      Returns a new, empty, FeatureStateManager.Change.
      Returns:
      a new, empty, FeatureStateManager.Change.
    • setState Link icon

      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 state
      featureState - the feature state to modify
      enabled - true to enable the feature state, and false to disable it
    • clearState Link icon

      public void clearState(@NotNull FeatureState featureState)
      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