Package com.luciad.format.shp
Class TLcdSHPLazyFeatured
java.lang.Object
com.luciad.format.shp.TLcdSHPLazyFeatured
- All Implemented Interfaces:
ILcdFeatured,Serializable
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 Summary
Modifier and TypeMethodDescriptionbooleancanSetFeature(int aIndex) Checks whether the specified feature is editable.intReturns the feature index to use for the display name.Returns the display name of thisILcdFeaturedobject.final ObjectgetFeature(int aIndex) Returns the featureObjectat the given index.final intReturns the number of features.voidsetDefaultDisplayNameIndex(int aDefaultDisplayNameIndex) Sets the feature index to use for the display name.voidsetFeature(int aIndex, Object aFeature) Sets the featureObjectat the given index.toString()
-
Method Details
-
getFeatureCount
public final int getFeatureCount()Description copied from interface:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
getFeature
Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat the given index. - Throws:
IndexOutOfBoundsException- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
setFeature
Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.aFeature- the new featureObject.- See Also:
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getDisplayName
Returns the display name of thisILcdFeaturedobject.- Returns:
- the display name of this
ILcdFeaturedobject.
-
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
-