com.supermap.web.events
public class EditEvent
继承 EditEvent Inheritance flash.events.Event

编辑操作事件类.

该类目前只提供了拖动节点事件类型。



公共属性
  属性 定义方
    feature : Feature
[read-only] 设置与当前事件关联的矢量要素 Feature。
EditEvent
    node : Point2D
[read-only] 设置与当前事件关联的节点矢量要素 Node。
EditEvent
公共方法
  方法 定义方
   
EditEvent(type:String, feature:Feature = null, node:Point2D = null)
初始化 EditEvent 类的新实例。
EditEvent
公共常量
  常量 定义方
    ADD_NODE : String = addNode
[static] 定义添加节点的 type 属性值,当点击边界添加节点时触发该事件。
EditEvent
    DRAG_NODE_END : String = dragNodeEnd
[static] 定义拖动节点结束事件的 type 属性值,当拖动节点结束时触发该事件。
EditEvent
    DRAG_NODE_START : String = dragNodeStart
[static] 定义拖动节点开始事件的 type 属性值,当拖动节点开始时触发该事件。
EditEvent
属性详细信息
feature 属性
feature:Feature  [read-only]

设置与当前事件关联的矢量要素 Feature。


Implementation
    public function get feature():Feature
node 属性  
node:Point2D  [read-only]

设置与当前事件关联的节点矢量要素 Node。


Implementation
    public function get node():Point2D
构造函数详细信息
EditEvent () 构造函数
public function EditEvent(type:String, feature:Feature = null, node:Point2D = null)

初始化 EditEvent 类的新实例。

参数
type:String — 事件类型。
 
feature:Feature (default = null) — 与当前事件关联的矢量要素 Feature。
 
node:Point2D (default = null) — 与当前事件关联的节点矢量要素 Node。
常量描述
ADD_NODE 常量
public static const ADD_NODE:String = addNode

定义添加节点的 type 属性值,当点击边界添加节点时触发该事件。

DRAG_NODE_END 常量  
public static const DRAG_NODE_END:String = dragNodeEnd

定义拖动节点结束事件的 type 属性值,当拖动节点结束时触发该事件。

DRAG_NODE_START 常量  
public static const DRAG_NODE_START:String = dragNodeStart

定义拖动节点开始事件的 type 属性值,当拖动节点开始时触发该事件。