public class TLcdModelContainer extends Object implements ILcdModelContainer
ILcdModelContainer
.Constructor and Description |
---|
TLcdModelContainer() |
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. |
int |
modelCount()
Returns the number of
ILcdModel objects contained in this
ILcdModelContainer . |
void |
modelProduced(TLcdModelProducerEvent e)
Notifies this ILcdModelProducerListener of a produced model.
|
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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModels
public int modelCount()
ILcdModelContainer
ILcdModel
objects contained in this
ILcdModelContainer
.modelCount
in interface ILcdModelContainer
ILcdModel
objects contained in this
ILcdModelContainer
.public boolean addModel(ILcdModel aModel)
ILcdModelContainer
ILcdModel
to this ILcdModelContainer
.addModel
in interface ILcdModelContainer
aModel
- the model to be added.true
if this collection of models changed as a result of the callpublic boolean removeModel(ILcdModel aModel)
ILcdModelContainer
ILcdModel
from this ILcdModelContainer
.removeModel
in interface ILcdModelContainer
aModel
- the model to be removed.true
if a model was removed as a result of this callpublic ILcdModel getModel(int aIndex)
ILcdModelContainer
ILcdModel
at the given index.getModel
in interface ILcdModelContainer
aIndex
- a valid index in this ILcdModelContainer
.ILcdModel
at the given index.public Enumeration models()
ILcdModelContainer
Enumeration
of the ILcdModel
objects contained in
this ILcdModelContainer
.models
in interface ILcdModelContainer
Enumeration
of the ILcdModel
objects contained in
this ILcdModelContainer
.public void addModelContainerListener(ILcdModelContainerListener aModelContainerListener)
ILcdModelContainer
ILcdModelContainerListener
to this ILcdModelContainer
.addModelContainerListener
in interface ILcdModelContainer
aModelContainerListener
- the listener to be added.ILcdModelContainer.removeModelContainerListener(com.luciad.model.ILcdModelContainerListener)
public void removeModelContainerListener(ILcdModelContainerListener aModelContainerListener)
ILcdModelContainer
ILcdModelContainerListener
from this ILcdModelContainer
.removeModelContainerListener
in interface ILcdModelContainer
aModelContainerListener
- the listener to be removed.ILcdModelContainer.addModelContainerListener(com.luciad.model.ILcdModelContainerListener)
public void modelProduced(TLcdModelProducerEvent e)
ILcdModelProducerListener
modelProduced
in interface ILcdModelProducerListener
e
- the event describing the changes to a ILcdModelProducer
.