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
FieldsModifier and TypeFieldDescriptionstatic final intAn invalidation caused by a change of the backgroundstatic final intAn invalidation caused by a change of the view's dimensionsstatic final intAn invalidation that was explicitly called forstatic final intAn invalidation caused by a label painter changestatic final intAn invalidation caused by labels being placedstatic final intAn invalidation concerning a specific layerstatic final intAn invalidation caused by a painting mode changestatic final intAn invalidation caused by a pan operationstatic final intAn invalidation of a specific regionstatic final intAn invalidation caused by rotationstatic final intAn invalidation caused by change of the map scalestatic final intAn invalidation of the selection onlystatic final intAn invalidation caused by a change of the view originstatic final intAn invalidation caused by a change of the world originstatic final intAn invalidation caused by a change of the world referenceFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcdViewInvalidationEvent(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 sameObjectas 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:
toStringin classEventObject
-