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 TypeMethodDescriptionboolean
Adds anILcdModel
to thisILcdModelContainer
.void
addModelContainerListener
(ILcdModelContainerListener aModelContainerListener) Adds anILcdModelContainerListener
to thisILcdModelContainer
.getModel
(int aIndex) Returns theILcdModel
at the given index.Returns aList
of the models.int
Returns the number ofILcdModel
objects contained in thisILcdModelContainer
.models()
Returns anEnumeration
of theILcdModel
objects contained in thisILcdModelContainer
.boolean
removeModel
(ILcdModel aModel) Removes anILcdModel
from thisILcdModelContainer
.void
removeModelContainerListener
(ILcdModelContainerListener aModelContainerListener) Removes anILcdModelContainerListener
from thisILcdModelContainer
.Methods inherited from interface com.luciad.model.ILcdModelProducerListener
modelProduced
-
Method Details
-
modelCount
int modelCount()Returns the number ofILcdModel
objects contained in thisILcdModelContainer
.- Returns:
- the number of
ILcdModel
objects contained in thisILcdModelContainer
.
-
addModel
Adds anILcdModel
to thisILcdModelContainer
.- Parameters:
aModel
- the model to be added.- Returns:
true
if 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 anILcdModel
from thisILcdModelContainer
.- Parameters:
aModel
- the model to be removed.- Returns:
true
if a model was removed as a result of this call
-
getModel
Returns theILcdModel
at the given index.- Parameters:
aIndex
- a valid index in thisILcdModelContainer
.- Returns:
- the
ILcdModel
at the given index.
-
models
Enumeration models()Returns anEnumeration
of theILcdModel
objects contained in thisILcdModelContainer
.- Returns:
- an
Enumeration
of theILcdModel
objects contained in thisILcdModelContainer
.
-
getModels
Returns aList
of the models.- Returns:
- an unmodifiable
List
of the models in thisILcdModelContainer
- Since:
- 2018.0
-
addModelContainerListener
Adds anILcdModelContainerListener
to thisILcdModelContainer
.- Parameters:
aModelContainerListener
- the listener to be added.- See Also:
-
removeModelContainerListener
Removes anILcdModelContainerListener
from thisILcdModelContainer
.- Parameters:
aModelContainerListener
- the listener to be removed.- See Also:
-