Interface FeatureSelection

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.observer.ComplexObservable, DataSelection, DataSet, org.gvsig.tools.dispose.Disposable, FeatureReferenceSelection, FeatureSet, org.gvsig.tools.visitor.IndexedVisitable, org.gvsig.tools.util.IsEmpty, Iterable<Feature>, org.gvsig.tools.observer.Observable, org.gvsig.tools.observer.Observer, org.gvsig.tools.persistence.Persistent, org.gvsig.tools.util.Size, org.gvsig.tools.util.Size64, org.gvsig.tools.visitor.Visitable, org.gvsig.tools.observer.WeakReferencingObservable

public interface FeatureSelection extends FeatureReferenceSelection, FeatureSet, org.gvsig.tools.lang.Cloneable
Manages a selection of Features.
Author:
Cèsar Ordiñana
  • Field Details

    • EMTPY_FEATURE_SELECTION

      static final FeatureSelection EMTPY_FEATURE_SELECTION
  • Method Details

    • select

      boolean select(Feature feature)
      Adds a feature to the selection.
      Parameters:
      feature - the selected feature
      Returns:
      true if the feature was not selected before selecting it
    • deselect

      boolean deselect(Feature feature)
      Removes a feature from the selection.
      Parameters:
      feature - the deselected feature
      Returns:
      true if the feature was selected before deselecting it
    • select

      boolean select(FeatureSet features) throws DataException
      Adds a DataSet of features to the selection.
      Parameters:
      features - the selected features
      Returns:
      true if any of the feature was not selected before selecting it
      Throws:
      DataException - if there is an error reading the FeatureSet values
    • deselect

      boolean deselect(FeatureSet features) throws DataException
      Removes a DataSet of features from the selection.
      Parameters:
      features - the deselected features
      Returns:
      true if any of the features was selected before deselecting it
      Throws:
      DataException - if there is an error reading the FeatureSet values
    • isSelected

      boolean isSelected(Feature feature)
      Returns if a feature is selected.
      Parameters:
      feature - to check
      Returns:
      if it is selected
    • isAvailable

      boolean isAvailable()
      Specified by:
      isAvailable in interface FeatureReferenceSelection