public class TLcdDAFIFLoaderEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
MODEL_ADDED
ID used to describe the addition of a DAFIF model.
|
static int |
MODEL_REMOVED
ID used to describe the removal of a DAFIF model.
|
source
Constructor and Description |
---|
TLcdDAFIFLoaderEvent(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.
|
Modifier and Type | Method and Description |
---|---|
String |
getICAORegion()
Returns the ICAO region for which this event describes an update.
|
int |
getID()
Returns the ID of this event (one of
MODEL_ADDED or MODEL_REMOVED ). |
ILcdModel |
getModel()
Returns the model whose addition or removal caused this event.
|
String |
getType()
Returns the DAFIF type name for which this event describes an update.
|
boolean |
isInvalidateView()
Specifies whether or not any views of the DAFIF data should be updated in
response to this event.
|
getSource, toString
public static final int MODEL_ADDED
getID()
,
Constant Field Valuespublic static final int MODEL_REMOVED
getID()
,
Constant Field Valuespublic TLcdDAFIFLoaderEvent(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel)
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.public TLcdDAFIFLoaderEvent(Object aSource, int aID, String aType, String aRegion, ILcdModel aModel, boolean aInvalidateView)
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 viewedpublic int getID()
MODEL_ADDED
or MODEL_REMOVED
).public ILcdModel getModel()
public String getType()
public String getICAORegion()
public boolean isInvalidateView()