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
Modifier 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
ConstructorDescriptionTLcdDAFIFLoaderEvent
(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
-
MODEL_ADDED
public static final int MODEL_ADDEDID used to describe the addition of a DAFIF model.- See Also:
-
MODEL_REMOVED
public static final int MODEL_REMOVEDID used to describe the removal of a DAFIF model.- See Also:
-
-
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
-