Packagecom.yworks.graph.input
Classpublic class NodeDropEvent
InheritanceNodeDropEvent Inheritance flash.events.Event

An 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

NodeDropInputMode


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
NodeDropEvent(type:String, node:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new event.
NodeDropEvent
Public Constants
 ConstantDefined By
  NODE_CREATED : String = nodeCreated
[static] Dispatched when a new node has been created.
NodeDropEvent
Property Detail
graphproperty
graph:IGraph  [read-only]

Returns the graph the node was created in.


Implementation
    public function get graph():IGraph
nodeproperty 
node:INode  [read-only]

Returns the node that was created.


Implementation
    public function get node():INode
Constructor Detail
NodeDropEvent()Constructor
public function NodeDropEvent(type:String, node:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new event.

Parameters
type: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.
Constant Detail
NODE_CREATEDConstant
public static const NODE_CREATED:String = nodeCreated

Dispatched when a new node has been created.