public class MapLayerEvent extends EventObject
Layer
,
MapLayerListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DATA_CHANGED
Flag set when the data attached to this layer changed.
|
static int |
FILTER_CHANGED
Flag set when the definition query attached to this layer changed.
|
static int |
METADATA_CHANGED
Flag set when the some metadata (like the title) changes
|
static int |
PRE_DISPOSE
Flag set when the layer is about to be disposed.
|
static int |
SELECTION_CHANGED
Flag set when the layer selection status is changed.
|
static int |
STYLE_CHANGED
Flag set when the style attached to this layer changed.
|
static int |
VISIBILITY_CHANGED
Flag set when the layer visibility changed.
|
source
Constructor and Description |
---|
MapLayerEvent(Object source,
int reason)
Creates a new instance of
LayerEvent with the specified reason. |
Modifier and Type | Method and Description |
---|---|
int |
getReason()
Returns the reason why this event is fired.
|
getSource, toString
public static final int VISIBILITY_CHANGED
getReason()
,
Constant Field Valuespublic static final int METADATA_CHANGED
getReason()
,
Constant Field Valuespublic static final int DATA_CHANGED
getReason()
,
Constant Field Valuespublic static final int STYLE_CHANGED
getReason()
,
Constant Field Valuespublic static final int FILTER_CHANGED
getReason()
,
Constant Field Valuespublic static final int SELECTION_CHANGED
getReason()
,
Constant Field Valuespublic static final int PRE_DISPOSE
public MapLayerEvent(Object source, int reason) throws IllegalArgumentException
LayerEvent
with the specified reason.source
- The source of the event change.reason
- Why the event was fired.IllegalArgumentException
- If the reason
is not a valid enum.public int getReason()
VISIBILITY_CHANGED
or
#TITLE_CHANGED
constants.Copyright © 1996–2023 Geotools. All rights reserved.