public class TLcdViewInvalidationEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
BACKGROUND
An invalidation caused by a change of the background
|
static int |
DIMENSIONS
An invalidation caused by a change of the view's dimensions
|
static int |
INVALIDATION
An invalidation that was explicitly called for
|
static int |
LABEL_PAINTER
An invalidation caused by a label painter change
|
static int |
LABELS_PLACED
An invalidation caused by labels being placed
|
static int |
LAYER_INVALIDATION
An invalidation concerning a specific layer
|
static int |
PAINTING_MODE
An invalidation caused by a painting mode change
|
static int |
PAN
An invalidation caused by a pan operation
|
static int |
REGION_INVALIDATION
An invalidation of a specific region
|
static int |
ROTATION
An invalidation caused by rotation
|
static int |
SCALE
An invalidation caused by change of the map scale
|
static int |
SELECTION_INVALIDATION
An invalidation of the selection only
|
static int |
VIEW_ORIGIN
An invalidation caused by a change of the view origin
|
static int |
WORLD_ORIGIN
An invalidation caused by a change of the world origin
|
static int |
WORLD_REFERENCE
An invalidation caused by a change of the world reference
|
source
Constructor and Description |
---|
TLcdViewInvalidationEvent(ILcdView aSource,
ILcdLayer aLayer,
int aReason,
String aMessage)
Creates a new event describing an invalidation.
|
TLcdViewInvalidationEvent(ILcdView aSource,
int aReason,
String aMessage)
Creates a new event describing an invalidation.
|
Modifier and Type | Method and Description |
---|---|
ILcdLayer |
getLayer()
Returns the layer that was invalidated, if any.
|
String |
getMessage()
Returns the message associated with the invalidation.
|
int |
getReason()
Returns the reason for the invalidation.
|
ILcdView |
getView()
Returns the view that has fired this invalidation event.
|
String |
toString() |
getSource
public static final int PAN
public static final int SCALE
public static final int ROTATION
public static final int WORLD_ORIGIN
public static final int WORLD_REFERENCE
public static final int LABEL_PAINTER
public static final int VIEW_ORIGIN
public static final int BACKGROUND
public static final int PAINTING_MODE
public static final int INVALIDATION
public static final int LAYER_INVALIDATION
public static final int REGION_INVALIDATION
public static final int SELECTION_INVALIDATION
public static final int DIMENSIONS
public static final int LABELS_PLACED
public TLcdViewInvalidationEvent(ILcdView aSource, int aReason, String aMessage)
aSource
- the view on which the invalidation happened.aReason
- the reason for the invalidation.
This class defines a number of constants that can be used.aMessage
- the message associated with the invalidation.IllegalArgumentException
- if source is null.public TLcdViewInvalidationEvent(ILcdView aSource, ILcdLayer aLayer, int aReason, String aMessage)
aSource
- the view on which the invalidation happened.aLayer
- the layer that was invalidated (if any)aReason
- the reason for the invalidation.
This class defines a number of constants that can be used.aMessage
- the message associated with the invalidation.IllegalArgumentException
- if source is null.public ILcdView getView()
Object
as the one returned by
getSource()
.public int getReason()
This class defines a number of constants that can be used. Do not assume that these constants are exhaustive: more reason types may be added in the future.
public ILcdLayer getLayer()
public String getMessage()
public String toString()
toString
in class EventObject