Class TLcyDrawingModelDescriptor
java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.model.TLcdFeaturedModelDescriptor
com.luciad.lucy.addons.drawing.model.TLcyDrawingModelDescriptor
- All Implemented Interfaces:
ILcdModelDescriptor,ILcdFeaturedDescriptor,ILcdFeaturedDescriptorProvider,Serializable
- Direct Known Subclasses:
TLcyDrawingDataModelDescriptor
The ILcdModelDescriptor used by the models created by the TLcyDrawingFormat when
specified in the configuration file of the drawing add-on.
The default ILcdModelDescriptor for drawing models is the TLcyDrawingDataModelDescriptor.
- Since:
- 8.2
- See Also:
-
Field Summary
Fields inherited from class com.luciad.model.TLcdFeaturedModelDescriptor
fFeatureClasses -
Constructor Summary
ConstructorsConstructorDescriptionTLcyDrawingModelDescriptor(String aSourceName, String aDisplayName) Constructs a newTLcyDrawingModelDescriptorwith the given parametersTLcyDrawingModelDescriptor(String aSourceName, String aDisplayName, TLcyDrawingStyleRepository aDrawingModelStyle) Constructs a newTLcyDrawingModelDescriptorwith the given parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(String aFeatureName, Class aFeatureType) Add an extra feature to the modelReturns theTLcyDrawingStyleRepository, associated with this model, and which contains all the permanent available stylesgetFeatureClass(int i) Returns theClassof the feature at the given index.intReturns the number of features.intReturns the index of the given feature name if it exists, -1 otherwise.getFeatureName(int i) Returns the name of the feature at the given index.voidremoveFeature(int index) Removes the feature at indexindexvoidsetFeature(int index, String aFeatureName, Class aFeatureType) Edit an existing featureMethods inherited from class com.luciad.model.TLcdFeaturedModelDescriptor
getFeaturedDescriptorMethods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasureMethods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Constructor Details
-
TLcyDrawingModelDescriptor
Constructs a newTLcyDrawingModelDescriptorwith the given parameters- Parameters:
aSourceName- the source nameaDisplayName- the display name
-
TLcyDrawingModelDescriptor
public TLcyDrawingModelDescriptor(String aSourceName, String aDisplayName, TLcyDrawingStyleRepository aDrawingModelStyle) Constructs a newTLcyDrawingModelDescriptorwith the given parameters- Parameters:
aSourceName- the source nameaDisplayName- the display nameaDrawingModelStyle- Repository containing SLD styles which can be used by the domain objects
-
-
Method Details
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptorReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeaturedDescriptor- Overrides:
getFeatureCountin classTLcdFeaturedModelDescriptor- Returns:
- the number of features.
-
getFeatureName
Description copied from interface:ILcdFeaturedDescriptorReturns the name of the feature at the given index.- Specified by:
getFeatureNamein interfaceILcdFeaturedDescriptor- Overrides:
getFeatureNamein classTLcdFeaturedModelDescriptor- Parameters:
i- a valid feature index.- Returns:
- the name of the feature at the given index.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptorReturns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndexin interfaceILcdFeaturedDescriptor- Overrides:
getFeatureIndexin classTLcdFeaturedModelDescriptor- Parameters:
s- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptorReturns theClassof the feature at the given index.- Specified by:
getFeatureClassin interfaceILcdFeaturedDescriptor- Overrides:
getFeatureClassin classTLcdFeaturedModelDescriptor- Parameters:
i- a valid feature index.- Returns:
- the
Classof the feature at the given index.
-
addFeature
Add an extra feature to the model- Parameters:
aFeatureName- the name of the new featureaFeatureType- the type of the new feature
-
setFeature
Edit an existing feature- Parameters:
index- the index of the feature which will be editedaFeatureName- the new name for the feature at indexindexaFeatureType- the new type for the feature at indexindex- Throws:
ArrayIndexOutOfBoundsException- if the index does not exist.
-
removeFeature
public void removeFeature(int index) Removes the feature at indexindex- Parameters:
index- the index of the feature which will be removed- Throws:
ArrayIndexOutOfBoundsException- if the index does not exist.
-
getDrawingStyleRepository
Returns theTLcyDrawingStyleRepository, associated with this model, and which contains all the permanent available styles- Returns:
- the
TLcyDrawingStyleRepository, associated with this model
-