| |
|
| java.lang.Object java.util.EventObject org.geotools.map.event.MapLayerEvent
MapLayerEvent | public class MapLayerEvent extends EventObject (Code) | | Event fired when some
property changes.
author: Andrea Aime author: Ian Turton author: Martin Desruisseaux version: $Id: MapLayerEvent.java 25075 2007-04-09 19:20:46Z desruisseaux $ See Also: Layer See Also: LayerListener |
Field Summary | |
final public static int | DATA_CHANGED Flag set when the data attached to this layer changed. | final public static int | FILTER_CHANGED Flag set when the definition query attached to this layer changed. | final public static int | METADATA_CHANGED | final public static int | STYLE_CHANGED Flag set when the style attached to this layer changed. | final public static int | VISIBILITY_CHANGED Flag set when the layer visibility changed. |
Constructor Summary | |
public | MapLayerEvent(Object source, int reason) Creates a new instance of LayerEvent with the specified reason. |
Method Summary | |
public int | getReason() Returns the reason why this event is fired. |
FILTER_CHANGED | final public static int FILTER_CHANGED(Code) | | Flag set when the definition query attached to this layer changed.
See Also: MapLayerEvent.getReason |
METADATA_CHANGED | final public static int METADATA_CHANGED(Code) | | Flag set when the some metadata (like the title) changes
See Also: MapLayerEvent.getReason |
STYLE_CHANGED | final public static int STYLE_CHANGED(Code) | | Flag set when the style attached to this layer changed.
See Also: MapLayerEvent.getReason |
MapLayerEvent | public MapLayerEvent(Object source, int reason) throws IllegalArgumentException(Code) | | Creates a new instance of LayerEvent with the specified reason.
Parameters: source - The source of the event change. Parameters: reason - Why the event was fired. throws: IllegalArgumentException - If the reason is not a valid enum. |
|
|
|