Package org.geotools.map
Class MapLayerEvent
Object
EventObject
MapLayerEvent
- All Implemented Interfaces:
Serializable
Event fired when some Layer property changes.
- Author:
- Andrea Aime, Ian Turton, Martin Desruisseaux
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Flag set when the data attached to this layer changed.static final int
Flag set when the definition query attached to this layer changed.static final int
Flag set when the some metadata (like the title) changesstatic final int
Flag set when the layer is about to be disposed.static final int
Flag set when the layer selection status is changed.static final int
Flag set when the style attached to this layer changed.static final int
Flag set when the layer visibility changed.Fields inherited from class EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMapLayerEvent
(Object source, int reason) Creates a new instance ofLayerEvent
with the specified reason. -
Method Summary
Methods inherited from class EventObject
getSource, toString
-
Field Details
-
VISIBILITY_CHANGED
public static final int VISIBILITY_CHANGEDFlag set when the layer visibility changed.- See Also:
-
METADATA_CHANGED
public static final int METADATA_CHANGEDFlag set when the some metadata (like the title) changes- See Also:
-
DATA_CHANGED
public static final int DATA_CHANGEDFlag set when the data attached to this layer changed.- See Also:
-
STYLE_CHANGED
public static final int STYLE_CHANGEDFlag set when the style attached to this layer changed.- See Also:
-
FILTER_CHANGED
public static final int FILTER_CHANGEDFlag set when the definition query attached to this layer changed.- See Also:
-
SELECTION_CHANGED
public static final int SELECTION_CHANGEDFlag set when the layer selection status is changed.- See Also:
-
PRE_DISPOSE
public static final int PRE_DISPOSEFlag set when the layer is about to be disposed.- See Also:
-
-
Constructor Details
-
MapLayerEvent
Creates a new instance ofLayerEvent
with the specified reason.- Parameters:
source
- The source of the event change.reason
- Why the event was fired.- Throws:
IllegalArgumentException
- If thereason
is not a valid enum.
-
-
Method Details
-
getReason
public int getReason()Returns the reason why this event is fired. It is one ofVISIBILITY_CHANGED
or#TITLE_CHANGED
constants.
-