org.geotools.map.event
Class MapLayerEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.geotools.map.event.MapLayerEvent
All Implemented Interfaces:
java.io.Serializable

public class MapLayerEvent
extends java.util.EventObject

Event fired when some property changes.

Version:
$Id: MapLayerEvent.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Andrea Aime, Ian Turton, Martin Desruisseaux
See Also:
Layer, LayerListener, Serialized Form

Field Summary
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 STYLE_CHANGED
          Flag set when the style attached to this layer changed.
static int VISIBILITY_CHANGED
          Flag set when the layer visibility changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapLayerEvent(java.lang.Object source, int reason)
          Creates a new instance of LayerEvent with the specified reason.
 
Method Summary
 int getReason()
          Returns the reason why this event is fired.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VISIBILITY_CHANGED

public static final int VISIBILITY_CHANGED
Flag set when the layer visibility changed.

See Also:
getReason(), Constant Field Values

METADATA_CHANGED

public static final int METADATA_CHANGED
Flag set when the some metadata (like the title) changes

See Also:
getReason(), Constant Field Values

DATA_CHANGED

public static final int DATA_CHANGED
Flag set when the data attached to this layer changed.

See Also:
getReason(), Constant Field Values

STYLE_CHANGED

public static final int STYLE_CHANGED
Flag set when the style attached to this layer changed.

See Also:
getReason(), Constant Field Values

FILTER_CHANGED

public static final int FILTER_CHANGED
Flag set when the definition query attached to this layer changed.

See Also:
getReason(), Constant Field Values
Constructor Detail

MapLayerEvent

public MapLayerEvent(java.lang.Object source,
                     int reason)
              throws java.lang.IllegalArgumentException
Creates a new instance of LayerEvent with the specified reason.

Parameters:
source - The source of the event change.
reason - Why the event was fired.
Throws:
java.lang.IllegalArgumentException - If the reason is not a valid enum.
Method Detail

getReason

public int getReason()
Returns the reason why this event is fired. It is one of VISIBILITY_CHANGED or #TITLE_CHANGED constants.

Returns:
DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.