public interface ILcdModelContainer extends ILcdModelProducerListener
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)
ILcdModel
,
ILcdModelContainerListener
Modifier and Type | Method and Description |
---|---|
boolean |
addModel(ILcdModel aModel)
Adds an
ILcdModel to this ILcdModelContainer . |
void |
addModelContainerListener(ILcdModelContainerListener aModelContainerListener)
Adds an
ILcdModelContainerListener to this ILcdModelContainer . |
ILcdModel |
getModel(int aIndex)
Returns the
ILcdModel at the given index. |
default List<? extends ILcdModel> |
getModels()
Returns a
List of the models. |
int |
modelCount()
Returns the number of
ILcdModel objects contained in this
ILcdModelContainer . |
Enumeration |
models()
Returns an
Enumeration of the ILcdModel objects contained in
this ILcdModelContainer . |
boolean |
removeModel(ILcdModel aModel)
Removes an
ILcdModel from this ILcdModelContainer . |
void |
removeModelContainerListener(ILcdModelContainerListener aModelContainerListener)
Removes an
ILcdModelContainerListener from this ILcdModelContainer . |
modelProduced
int modelCount()
ILcdModel
objects contained in this
ILcdModelContainer
.ILcdModel
objects contained in this
ILcdModelContainer
.boolean addModel(ILcdModel aModel)
ILcdModel
to this ILcdModelContainer
.aModel
- the model to be added.true
if this collection of models changed as a result of the callIllegalArgumentException
- if some property of the element prevents it from being added to
this model containerboolean removeModel(ILcdModel aModel)
ILcdModel
from this ILcdModelContainer
.aModel
- the model to be removed.true
if a model was removed as a result of this callILcdModel getModel(int aIndex)
ILcdModel
at the given index.aIndex
- a valid index in this ILcdModelContainer
.ILcdModel
at the given index.Enumeration models()
Enumeration
of the ILcdModel
objects contained in
this ILcdModelContainer
.Enumeration
of the ILcdModel
objects contained in
this ILcdModelContainer
.default List<? extends ILcdModel> getModels()
List
of the models.List
of the models in this ILcdModelContainer
void addModelContainerListener(ILcdModelContainerListener aModelContainerListener)
ILcdModelContainerListener
to this ILcdModelContainer
.aModelContainerListener
- the listener to be added.removeModelContainerListener(com.luciad.model.ILcdModelContainerListener)
void removeModelContainerListener(ILcdModelContainerListener aModelContainerListener)
ILcdModelContainerListener
from this ILcdModelContainer
.aModelContainerListener
- the listener to be removed.addModelContainerListener(com.luciad.model.ILcdModelContainerListener)