包 | com.supermap.web.events |
类 | public class EditEvent |
继承 | EditEvent ![]() |
该类目前只提供了拖动节点事件类型。
属性 | 定义方 | ||
---|---|---|---|
feature : Feature
[read-only] 设置与当前事件关联的矢量要素 Feature。
|
EditEvent | ||
node : Point2D
[read-only] 设置与当前事件关联的节点矢量要素 Node。
|
EditEvent |
方法 | 定义方 | ||
---|---|---|---|
初始化 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。
public function get feature():Feature
node | 属性 |
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 属性值,当拖动节点开始时触发该事件。