Package com.luciad.model
Class TLcdModelProducerEvent
java.lang.Object
java.util.EventObject
com.luciad.util.ALcdDispatchableEvent
com.luciad.model.TLcdModelProducerEvent
- All Implemented Interfaces:
ILcdDispatchableEvent
,Serializable
TLcdModelProducerEvent
implements dispatchable events
on a ILcdModelProducer
.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdModelProducerEvent
(ILcdModelProducer aSource, int aId, ILcdModel aModel) Constructs a new event indicating the a model was created.TLcdModelProducerEvent
(ILcdModelProducer aSource, int aId, ILcdModel aModel, boolean isAdjusting) Constructs a new event indicating the a model was created. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(EventListener listener) Sends thisILcdDispatchableEvent
to the given listener.int
getID()
Returns the type of change this event was caused by.getModel()
Returns the model on which the changes have taken place.Returns the model producer responsible for the change on a model.boolean
Returns whether this event is part of a sequence of events.protected String
Returns the display name of the model (found in the model descriptor) and whether is adjusting is set.Methods inherited from class com.luciad.util.ALcdDispatchableEvent
toString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
STATE_CHANGED
public static final int STATE_CHANGED- See Also:
-
MODEL_PRODUCED
public static final int MODEL_PRODUCED- See Also:
-
-
Constructor Details
-
TLcdModelProducerEvent
Constructs a new event indicating the a model was created.- Parameters:
aSource
- the object that was responsible for the creation of the model. Cannot be null.aId
- indicates the production state of the model. Currently only MODEL_PRODUCED is supported.aModel
- the model that was created. Cannot be null.
-
TLcdModelProducerEvent
public TLcdModelProducerEvent(ILcdModelProducer aSource, int aId, ILcdModel aModel, boolean isAdjusting) Constructs a new event indicating the a model was created.- Parameters:
aSource
- the object that was responsible for the creation of the model. Cannot be null.aId
- indicates the production state of the model. Currently only MODEL_PRODUCED is supported.aModel
- the model that was created. Cannot be null.isAdjusting
- whether or not other events of this type will be following shortly.
-
-
Method Details
-
dispatch
Description copied from interface:ILcdDispatchableEvent
Sends thisILcdDispatchableEvent
to the given listener.- Specified by:
dispatch
in interfaceILcdDispatchableEvent
- Specified by:
dispatch
in classALcdDispatchableEvent
- Parameters:
listener
- the listener that will receive thisILcdDispatchableEvent
.
-
getID
public int getID()Returns the type of change this event was caused by. This can be eitherSTATE_CHANGED
orMODEL_PRODUCED
.- Returns:
- the type of change.
-
getModelProducer
Returns the model producer responsible for the change on a model.- Returns:
- the model producer responsible for the change on a model.
-
getModel
Returns the model on which the changes have taken place.- Returns:
- the model on which the changes have taken place.
-
isAdjusting
public boolean isAdjusting()Returns whether this event is part of a sequence of events.- Returns:
- true when this event is part of a sequence of
TLcdModelProducerEvent
objects.
-
paramString
Returns the display name of the model (found in the model descriptor) and whether is adjusting is set.- Overrides:
paramString
in classALcdDispatchableEvent
- Returns:
- the display name of the model (found in the model descriptor) and whether is adjusting is set.
-