com.esri.map
Class LayerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by com.esri.map.LayerEvent
All Implemented Interfaces:
Serializable

public class LayerEvent
extends AWTEvent

The Class LayerEvent.

See Also:
Serialized Form

Field Summary
static int LAYEREVENT_FIRST
           
static int LAYEREVENT_LAST
           
static int LAYEREVENT_LAYERADDED
           
static int LAYEREVENT_LAYERREMOVED
           
static int LAYEREVENT_MULTIPLELAYERSADDED
           
static int LAYEREVENT_MULTIPLELAYERSREMOVED
           
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LayerEvent(LayerList source, int id)
          Instantiates a new layer event.
LayerEvent(LayerList source, Layer changedLayer, int id)
          Instantiates a new layer event.
LayerEvent(LayerList source, Map<Integer,Layer> changedLayers, int id)
          Instantiates a new layer event.
 
Method Summary
 Layer getChangedLayer()
          Gets the changed layer.
 Map<Integer,Layer> getChangedLayers()
          Gets the changed layers.
 int getLayerIndex()
          Gets the map index of the changed layer.
 void setLayerIndex(int layerIndex)
          Sets the map index of the changed layer.
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LAYEREVENT_FIRST

public static final int LAYEREVENT_FIRST
See Also:
Constant Field Values

LAYEREVENT_LAYERADDED

public static final int LAYEREVENT_LAYERADDED
See Also:
Constant Field Values

LAYEREVENT_MULTIPLELAYERSADDED

public static final int LAYEREVENT_MULTIPLELAYERSADDED
See Also:
Constant Field Values

LAYEREVENT_LAYERREMOVED

public static final int LAYEREVENT_LAYERREMOVED
See Also:
Constant Field Values

LAYEREVENT_MULTIPLELAYERSREMOVED

public static final int LAYEREVENT_MULTIPLELAYERSREMOVED
See Also:
Constant Field Values

LAYEREVENT_LAST

public static final int LAYEREVENT_LAST
See Also:
Constant Field Values
Constructor Detail

LayerEvent

public LayerEvent(LayerList source,
                  Layer changedLayer,
                  int id)
Instantiates a new layer event.

Parameters:
source - the source of the event
changedLayer - the changed layer
id - the ID

LayerEvent

public LayerEvent(LayerList source,
                  int id)
Instantiates a new layer event.

Parameters:
source - the source of the event
id - the ID

LayerEvent

public LayerEvent(LayerList source,
                  Map<Integer,Layer> changedLayers,
                  int id)
Instantiates a new layer event.

Parameters:
source - the source of the event
list - of changed layers
id - the ID
Method Detail

getLayerIndex

public int getLayerIndex()
Gets the map index of the changed layer.

Returns:
int index

setLayerIndex

public void setLayerIndex(int layerIndex)
Sets the map index of the changed layer.

Parameters:
layerIndex -

getChangedLayer

public Layer getChangedLayer()
Gets the changed layer.

Returns:
the changed layer

getChangedLayers

public Map<Integer,Layer> getChangedLayers()
Gets the changed layers.

Returns:
the changed layers


Copyright © 2012. All Rights Reserved.