Package com.luciad.format.dafif.gui
Class TLcdDAFIFLoaderEvent
java.lang.Object
java.util.EventObject
com.luciad.format.dafif.gui.TLcdDAFIFLoaderEvent
- All Implemented Interfaces:
Serializable
Event for notifying listeners that a model has been added or removed by the TLcdDAFIFLoader.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
ID used to describe the addition of a DAFIF model.static final int
ID used to describe the removal of a DAFIF model.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdDAFIFLoaderEvent
(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel) Creates a new event.TLcdDAFIFLoaderEvent
(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel, boolean aInvalidateView) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ICAO region for which this event describes an update.int
getID()
Returns the ID of this event (one ofMODEL_ADDED
orMODEL_REMOVED
).getModel()
Returns the model whose addition or removal caused this event.getType()
Returns the DAFIF type name for which this event describes an update.boolean
Specifies whether or not any views of the DAFIF data should be updated in response to this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
Constructor Details
-
TLcdDAFIFLoaderEvent
public TLcdDAFIFLoaderEvent(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel) Creates a new event.- Parameters:
aSource
- Object from which the event originates.aID
- Event ID (MODEL_ADDED or MODEL_REMOVED).aType
- DAFIF Type name (Aerodrome, Airspace, ...).aRegion
- The ICAO Region coder (EB, ED, LF, ...).aModel
- Model being added or removed.
-
TLcdDAFIFLoaderEvent
public TLcdDAFIFLoaderEvent(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel, boolean aInvalidateView) Creates a new event.- Parameters:
aSource
- Object from which the event originates.aID
- Event ID (MODEL_ADDED or MODEL_REMOVED).aType
- DAFIF Type name (Aerodrome, Airspace, ...).aRegion
- The ICAO Region code (EB, ED, LF, ...).aModel
- Model being added or removed.aInvalidateView
- indicates whether this event should cause an invalidation of the map on which the DAFIF data is viewed
-
-
Method Details
-
getID
public int getID()Returns the ID of this event (one ofMODEL_ADDED
orMODEL_REMOVED
).- Returns:
- the ID of this event
-
getModel
Returns the model whose addition or removal caused this event.- Returns:
- an ILcdModel
-
getType
Returns the DAFIF type name for which this event describes an update.- Returns:
- a DAFIF type name (e.g. Aerodrome, Airspace, ...)
-
getICAORegion
Returns the ICAO region for which this event describes an update.- Returns:
- an ICAO region code
-
isInvalidateView
public boolean isInvalidateView()Specifies whether or not any views of the DAFIF data should be updated in response to this event.- Returns:
- true if any views of the DAFIF data should be invalidated
-