| Package | com.yworks.graph.input |
| Class | public class NodeDropEvent |
| Inheritance | NodeDropEvent flash.events.Event |
Event which is dispatched by the NodeDropInputMode mode when a node was created by the user.
The node can be retrieved in the node property.
See also
| Property | Defined By | ||
|---|---|---|---|
| graph : IGraph [read-only]
Returns the graph the node was created in. | NodeDropEvent | ||
| node : INode [read-only]
Returns the node that was created. | NodeDropEvent | ||
| Method | Defined By | ||
|---|---|---|---|
NodeDropEvent(type:String, node:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new event. | NodeDropEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| NODE_CREATED : String = nodeCreated [static]
Dispatched when a new node has been created. | NodeDropEvent | ||
| graph | property |
graph:IGraph [read-only] Returns the graph the node was created in.
public function get graph():IGraph| node | property |
node:INode [read-only] Returns the node that was created.
public function get node():INode| NodeDropEvent | () | Constructor |
public function NodeDropEvent(type:String, node:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)Creates a new event.
Parameterstype:String — The type of the event.
| |
node:INode — The node which was created.
| |
graph:IGraph — The graph which contains or contained the node.
| |
bubbles:Boolean (default = false) — Whether the event will bubble.
| |
cancelable:Boolean (default = false) — Whether the event can be canceled. Note that cancelling the event
will not prevent the edit operation.
|
| NODE_CREATED | Constant |
public static const NODE_CREATED:String = nodeCreatedDispatched when a new node has been created.