public class TLcdSHPLazyFeatured extends Object implementsILcdFeatured
Object
, read from
a SHP file, only when it is needed. If the features have been read they are
cached within memory.Modifier and Type | Method and Description |
---|---|
boolean |
canSetFeature(int aIndex)
Checks whether the specified feature is editable.
|
int |
getDefaultDisplayNameIndex()
Returns the feature index to use for the display name.
|
String |
getDisplayName()
Returns the display name of this
ILcdFeatured object. |
Object |
getFeature(int aIndex)
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Returns the number of features.
|
void |
setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex)
Sets the feature index to use for the display name.
|
void |
setFeature(int aIndex,
Object aFeature)
Sets the feature
Object at the given index. |
String |
toString() |
public final int getFeatureCount()
ILcdFeatured
getFeatureCount
in interface ILcdFeatured
public final Object getFeature(int aIndex) throws IndexOutOfBoundsException
ILcdFeatured
Object
at the given index.getFeature
in interface ILcdFeatured
aIndex
- a valid feature index.Object
at the given index.IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.ILcdFeatured.setFeature(int, java.lang.Object)
public void setFeature(int aIndex, Object aFeature)
ILcdFeatured
Object
at the given index.setFeature
in interface ILcdFeatured
aIndex
- a valid feature index.aFeature
- the new feature Object
.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)
public boolean canSetFeature(int aIndex)
ILcdFeatured
canSetFeature
in interface ILcdFeatured
aIndex
- a valid feature index.public String getDisplayName()
ILcdFeatured
object.ILcdFeatured
object.public void setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex)
aDefaultDisplayNameIndex
- the feature index to use for the display name.getDefaultDisplayNameIndex()
public int getDefaultDisplayNameIndex()
setDefaultDisplayNameIndex(int)