Package com.luciad.model
Class TLcdModelContainer
java.lang.Object
com.luciad.model.TLcdModelContainer
- All Implemented Interfaces:
ILcdModelContainer
,ILcdModelProducerListener
,EventListener
This class provides an implementation of
ILcdModelContainer
.-
Constructor Summary
-
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.int
Returns the number ofILcdModel
objects contained in thisILcdModelContainer
.void
Notifies this ILcdModelProducerListener of a produced model.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelContainer
getModels
-
Constructor Details
-
TLcdModelContainer
public TLcdModelContainer()
-
-
Method Details
-
modelCount
public int modelCount()Description copied from interface:ILcdModelContainer
Returns the number ofILcdModel
objects contained in thisILcdModelContainer
.- Specified by:
modelCount
in interfaceILcdModelContainer
- Returns:
- the number of
ILcdModel
objects contained in thisILcdModelContainer
.
-
addModel
Description copied from interface:ILcdModelContainer
Adds anILcdModel
to thisILcdModelContainer
.- Specified by:
addModel
in interfaceILcdModelContainer
- Parameters:
aModel
- the model to be added.- Returns:
true
if this collection of models changed as a result of the call
-
removeModel
Description copied from interface:ILcdModelContainer
Removes anILcdModel
from thisILcdModelContainer
.- Specified by:
removeModel
in interfaceILcdModelContainer
- Parameters:
aModel
- the model to be removed.- Returns:
true
if a model was removed as a result of this call
-
getModel
Description copied from interface:ILcdModelContainer
Returns theILcdModel
at the given index.- Specified by:
getModel
in interfaceILcdModelContainer
- Parameters:
aIndex
- a valid index in thisILcdModelContainer
.- Returns:
- the
ILcdModel
at the given index.
-
models
Description copied from interface:ILcdModelContainer
Returns anEnumeration
of theILcdModel
objects contained in thisILcdModelContainer
.- Specified by:
models
in interfaceILcdModelContainer
- Returns:
- an
Enumeration
of theILcdModel
objects contained in thisILcdModelContainer
.
-
addModelContainerListener
Description copied from interface:ILcdModelContainer
Adds anILcdModelContainerListener
to thisILcdModelContainer
.- Specified by:
addModelContainerListener
in interfaceILcdModelContainer
- Parameters:
aModelContainerListener
- the listener to be added.- See Also:
-
removeModelContainerListener
Description copied from interface:ILcdModelContainer
Removes anILcdModelContainerListener
from thisILcdModelContainer
.- Specified by:
removeModelContainerListener
in interfaceILcdModelContainer
- Parameters:
aModelContainerListener
- the listener to be removed.- See Also:
-
modelProduced
Description copied from interface:ILcdModelProducerListener
Notifies this ILcdModelProducerListener of a produced model.- Specified by:
modelProduced
in interfaceILcdModelProducerListener
- Parameters:
e
- the event describing the changes to aILcdModelProducer
.
-