Package com.luciad.model
Interface ILcdModelContainer
- All Superinterfaces:
EventListener,ILcdModelProducerListener
- All Known Subinterfaces:
ILcdModelTreeNode
- All Known Implementing Classes:
TLcd2DBoundsIndexedModelList,TLcd2DBoundsIndexedModelTreeNode,TLcdGML2AbstractFeatureCollection,TLcdGML31AbstractFeatureCollection,TLcdGML31DynamicFeatureCollection,TLcdGML31FeatureCollection,TLcdGML31Model,TLcdGML32AbstractFeatureCollection,TLcdGML32FeatureCollection,TLcdGML32Model,TLcdKML22AbstractContainer,TLcdKML22Document,TLcdKML22DynamicModel,TLcdKML22Folder,TLcdKML22Kml,TLcdKML22NetworkLink,TLcdModelContainer,TLcdModelList,TLcdModelTreeNode,TLcdModelTreeNodeSupport
ILcdModelContainer is an ILcdModelProducerListener
containing a zero or more ILcdModel objects. Each ILcdModel has
a unique index, ranging from 0 to the number of ILcdModel objects in this
ILcdModelContainer - 1.
An ILcdModelContainer has zero or more ILcdModelContainerListeners associated to it.
The ILcdModelContainer sends a TLcdModelContainerEvent whenever the state of the
ILcdModelContainer changes.
(Listener pattern)

- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds anILcdModelto thisILcdModelContainer.voidaddModelContainerListener(ILcdModelContainerListener aModelContainerListener) Adds anILcdModelContainerListenerto thisILcdModelContainer.getModel(int aIndex) Returns theILcdModelat the given index.Returns aListof the models.intReturns the number ofILcdModelobjects contained in thisILcdModelContainer.models()Returns anEnumerationof theILcdModelobjects contained in thisILcdModelContainer.booleanremoveModel(ILcdModel aModel) Removes anILcdModelfrom thisILcdModelContainer.voidremoveModelContainerListener(ILcdModelContainerListener aModelContainerListener) Removes anILcdModelContainerListenerfrom thisILcdModelContainer.Methods inherited from interface com.luciad.model.ILcdModelProducerListener
modelProduced
-
Method Details
-
modelCount
int modelCount()Returns the number ofILcdModelobjects contained in thisILcdModelContainer.- Returns:
- the number of
ILcdModelobjects contained in thisILcdModelContainer.
-
addModel
Adds anILcdModelto thisILcdModelContainer.- Parameters:
aModel- the model to be added.- Returns:
trueif this collection of models changed as a result of the call- Throws:
IllegalArgumentException- if some property of the element prevents it from being added to this model container
-
removeModel
Removes anILcdModelfrom thisILcdModelContainer.- Parameters:
aModel- the model to be removed.- Returns:
trueif a model was removed as a result of this call
-
getModel
Returns theILcdModelat the given index.- Parameters:
aIndex- a valid index in thisILcdModelContainer.- Returns:
- the
ILcdModelat the given index.
-
models
Enumeration models()Returns anEnumerationof theILcdModelobjects contained in thisILcdModelContainer.- Returns:
- an
Enumerationof theILcdModelobjects contained in thisILcdModelContainer.
-
getModels
Returns aListof the models.- Returns:
- an unmodifiable
Listof the models in thisILcdModelContainer - Since:
- 2018.0
-
addModelContainerListener
Adds anILcdModelContainerListenerto thisILcdModelContainer.- Parameters:
aModelContainerListener- the listener to be added.- See Also:
-
removeModelContainerListener
Removes anILcdModelContainerListenerfrom thisILcdModelContainer.- Parameters:
aModelContainerListener- the listener to be removed.- See Also:
-