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
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcdModelProducerEvent(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 TypeMethodDescriptionvoiddispatch(EventListener listener) Sends thisILcdDispatchableEventto the given listener.intgetID()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.booleanReturns whether this event is part of a sequence of events.protected StringReturns 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
toStringMethods 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:ILcdDispatchableEventSends thisILcdDispatchableEventto the given listener.- Specified by:
dispatchin interfaceILcdDispatchableEvent- Specified by:
dispatchin 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_CHANGEDorMODEL_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
TLcdModelProducerEventobjects.
-
paramString
Returns the display name of the model (found in the model descriptor) and whether is adjusting is set.- Overrides:
paramStringin classALcdDispatchableEvent- Returns:
- the display name of the model (found in the model descriptor) and whether is adjusting is set.
-