Package com.luciad.view
Class TLcdViewInvalidationEvent
java.lang.Object
java.util.EventObject
com.luciad.view.TLcdViewInvalidationEvent
- All Implemented Interfaces:
Serializable
Class containing information about a view invalidation.
- Since:
- 7.2
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
An invalidation caused by a change of the backgroundstatic final int
An invalidation caused by a change of the view's dimensionsstatic final int
An invalidation that was explicitly called forstatic final int
An invalidation caused by a label painter changestatic final int
An invalidation caused by labels being placedstatic final int
An invalidation concerning a specific layerstatic final int
An invalidation caused by a painting mode changestatic final int
An invalidation caused by a pan operationstatic final int
An invalidation of a specific regionstatic final int
An invalidation caused by rotationstatic final int
An invalidation caused by change of the map scalestatic final int
An invalidation of the selection onlystatic final int
An invalidation caused by a change of the view originstatic final int
An invalidation caused by a change of the world originstatic final int
An invalidation caused by a change of the world referenceFields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdViewInvalidationEvent
(ILcdView aSource, int aReason, String aMessage) Creates a new event describing an invalidation.TLcdViewInvalidationEvent
(ILcdView aSource, ILcdLayer aLayer, int aReason, String aMessage) Creates a new event describing an invalidation. -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
PAN
public static final int PANAn invalidation caused by a pan operation- See Also:
-
SCALE
public static final int SCALEAn invalidation caused by change of the map scale- See Also:
-
ROTATION
public static final int ROTATIONAn invalidation caused by rotation- See Also:
-
WORLD_ORIGIN
public static final int WORLD_ORIGINAn invalidation caused by a change of the world origin- See Also:
-
WORLD_REFERENCE
public static final int WORLD_REFERENCEAn invalidation caused by a change of the world reference- See Also:
-
LABEL_PAINTER
public static final int LABEL_PAINTERAn invalidation caused by a label painter change- See Also:
-
VIEW_ORIGIN
public static final int VIEW_ORIGINAn invalidation caused by a change of the view origin- See Also:
-
BACKGROUND
public static final int BACKGROUNDAn invalidation caused by a change of the background- See Also:
-
PAINTING_MODE
public static final int PAINTING_MODEAn invalidation caused by a painting mode change- See Also:
-
INVALIDATION
public static final int INVALIDATIONAn invalidation that was explicitly called for- See Also:
-
LAYER_INVALIDATION
public static final int LAYER_INVALIDATIONAn invalidation concerning a specific layer- See Also:
-
REGION_INVALIDATION
public static final int REGION_INVALIDATIONAn invalidation of a specific region- See Also:
-
SELECTION_INVALIDATION
public static final int SELECTION_INVALIDATIONAn invalidation of the selection only- See Also:
-
DIMENSIONS
public static final int DIMENSIONSAn invalidation caused by a change of the view's dimensions- See Also:
-
LABELS_PLACED
public static final int LABELS_PLACEDAn invalidation caused by labels being placed- See Also:
-
-
Constructor Details
-
TLcdViewInvalidationEvent
Creates a new event describing an invalidation.- Parameters:
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.- Throws:
IllegalArgumentException
- if source is null.
-
TLcdViewInvalidationEvent
Creates a new event describing an invalidation.- Parameters:
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.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Details
-
getView
Returns the view that has fired this invalidation event. This is the sameObject
as the one returned bygetSource()
.- Returns:
- the source view
-
getReason
public int getReason()Returns the reason for the invalidation.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.
- Returns:
- the reason for the invalidation
-
getLayer
Returns the layer that was invalidated, if any.- Returns:
- the layer that was invalidated, or null if the entire view was invalidated.
-
getMessage
Returns the message associated with the invalidation.- Returns:
- the message associated with the invalidation
-
toString
- Overrides:
toString
in classEventObject
-