com.supermap.mapping
类 LayerAddedEvent

java.lang.Object
  继承者 com.supermap.mapping.LayerEvent
      继承者 com.supermap.mapping.LayerAddedEvent

public class LayerAddedEvent
extends LayerEvent

指示图层被添加的事件。

当一个图层被添加时触发此事件。


构造方法摘要
LayerAddedEvent(java.lang.Object source, Layer layer)
          根据指定的参数构造 LayerAddedEvent 类对象。
LayerAddedEvent(java.lang.Object source, Layer layer, int index)
          根据指定的参数构造 LayerAddedEvent 类对象。
 
方法摘要
 int getIndex()
          返回新添加图层的索引值。
 
从类 com.supermap.mapping.LayerEvent 继承的方法
getLayer
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LayerAddedEvent

public LayerAddedEvent(java.lang.Object source,
                       Layer layer)
根据指定的参数构造 LayerAddedEvent 类对象。

参数:
source - 发起事件的对象。
layer - 图层集合对象。

LayerAddedEvent

public LayerAddedEvent(java.lang.Object source,
                       Layer layer,
                       int index)
根据指定的参数构造 LayerAddedEvent 类对象。

参数:
source - 发起事件的对象。
layer - 图层集合对象。
index - 图层索引值。
方法详细信息

getIndex

public int getIndex()
返回新添加图层的索引值。

返回:
返回新添加图层的索引值。