GeoAPI 2.0
Build 2005-06-08

org.opengis.feature.display.canvas
Class FeatureLayerEvent

Object
  extended by EventObject
      extended by FeatureLayerEvent
All Implemented Interfaces:
Serializable

public class FeatureLayerEvent
extends EventObject

Instance of this event are passed to FeatureLayerListeners when a property of the canvas has changed.

Since:
GeoAPI 2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class EventObject
source
 
Constructor Summary
FeatureLayerEvent(FeatureLayer layer, Object newValue)
          Constructs an event for a feature layer's property initialized to a value.
FeatureLayerEvent(FeatureLayer layer, Object oldValue, Object newValue)
          Constructs an event for a feature layer's property set to a new value.
 
Method Summary
 FeatureLayer getLayer()
          Synonym for getSource().
 Object getNewValue()
          Returns the new value, or null in none.
 Object getOldValue()
          Returns the old value, or null in none.
 FeatureLayer getSource()
          Returns the modified layer.
 
Methods inherited from class EventObject
toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureLayerEvent

public FeatureLayerEvent(FeatureLayer layer,
                         Object newValue)
Constructs an event for a feature layer's property initialized to a value.

Parameters:
layer - The modified layer.
newValue - The new value.

FeatureLayerEvent

public FeatureLayerEvent(FeatureLayer layer,
                         Object oldValue,
                         Object newValue)
Constructs an event for a feature layer's property set to a new value.

Parameters:
layer - The modified layer.
oldValue - The old value, or null in none.
newValue - The new value, or null in none.
Method Detail

getOldValue

public Object getOldValue()
Returns the old value, or null in none.


getNewValue

public Object getNewValue()
Returns the new value, or null in none.


getSource

public FeatureLayer getSource()
Returns the modified layer.

Overrides:
getSource in class EventObject

getLayer

public FeatureLayer getLayer()
Synonym for getSource().


REVISIT OPEN ISSUE (a GeoAPI comment)
To be replaced by getSource() in a J2SE 1.5 profile.

GeoAPI 2.0
Build 2005-06-08

Symbols, terms and definitions
Copyright OpenGIS® Consortium