Class TLcdSHPLazyFeatured

java.lang.Object
com.luciad.format.shp.TLcdSHPLazyFeatured
All Implemented Interfaces:
ILcdFeatured, Serializable

public class TLcdSHPLazyFeatured extends Object implements ILcdFeatured
Class that allows to read the features of an Object, read from a SHP file, only when it is needed. If the features have been read they are cached within memory.
See Also:
  • Method Details

    • getFeatureCount

      public final int getFeatureCount()
      Description copied from interface: ILcdFeatured
      Returns the number of features.
      Specified by:
      getFeatureCount in interface ILcdFeatured
      Returns:
      the number of features.
    • getFeature

      public final Object getFeature(int aIndex) throws IndexOutOfBoundsException
      Description copied from interface: ILcdFeatured
      Returns the feature Object at the given index.
      Specified by:
      getFeature in interface ILcdFeatured
      Parameters:
      aIndex - a valid feature index.
      Returns:
      the feature Object at the given index.
      Throws:
      IndexOutOfBoundsException - when an index is chosen greater than the result of getFeatureCount.
      See Also:
    • setFeature

      public void setFeature(int aIndex, Object aFeature)
      Description copied from interface: ILcdFeatured
      Sets the feature Object at the given index.
      Specified by:
      setFeature in interface ILcdFeatured
      Parameters:
      aIndex - a valid feature index.
      aFeature - the new feature Object.
      See Also:
    • canSetFeature

      public boolean canSetFeature(int aIndex)
      Description copied from interface: ILcdFeatured
      Checks whether the specified feature is editable.
      Specified by:
      canSetFeature in interface ILcdFeatured
      Parameters:
      aIndex - a valid feature index.
      Returns:
      true if the feature can be set, false otherwise.
    • getDisplayName

      public String getDisplayName()
      Returns the display name of this ILcdFeatured object.
      Returns:
      the display name of this ILcdFeatured object.
    • setDefaultDisplayNameIndex

      public void setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex)
      Sets the feature index to use for the display name.
      Parameters:
      aDefaultDisplayNameIndex - the feature index to use for the display name.
      See Also:
    • getDefaultDisplayNameIndex

      public int getDefaultDisplayNameIndex()
      Returns the feature index to use for the display name.
      Returns:
      the feature index to use for the display name.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object