Packagecom.yworks.graph.input
Classpublic class GraphEditorHierarchyEvent
InheritanceGraphEditorHierarchyEvent Inheritance GraphEditorEvent Inheritance flash.events.Event

An Event which is dispatched by the GraphEditorInputMode when a node was reparented by the user.

The node can be retrieved in the item property, its old and new parents in the oldParent and newParent properties.



Public Properties
 PropertyDefined By
 Inheritedgraph : IGraph
[read-only] Returns the graph the item was created in / removed from.
GraphEditorEvent
 Inheriteditem : IModelItem
[read-only] Returns the item that was created, changed or removed.
GraphEditorEvent
  newParent : INode
[read-only] The new parent of the node after the reparenting gesture of the user.
GraphEditorHierarchyEvent
  oldParent : INode
[read-only] The parent of the node before it was reparented by the user.
GraphEditorHierarchyEvent
Public Methods
 MethodDefined By
  
GraphEditorHierarchyEvent(type:String, node:INode, oldParent:INode, newParent:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
GraphEditorHierarchyEvent
Public Constants
 ConstantDefined By
 InheritedBEND_CHANGED : String = bendChanged
[static] Dispatched when a new bend has been created.
GraphEditorEvent
 InheritedBEND_CREATED : String = bendCreated
[static] Dispatched when a new bend has been created.
GraphEditorEvent
 InheritedBEND_DELETED : String = bendDeleted
[static] Dispatched when a bend has been deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedCURRENT_ITEM_CHANGED : String = currentItemChanged
[static] Dispatched when a when the current item has changed.
GraphEditorEvent
 InheritedDELETING_BEND : String = deletingBend
[static] Dispatched when a bend will be deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedDELETING_EDGE : String = deletingEdge
[static] Dispatched when an edge will be deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedDELETING_LABEL : String = deletingLabel
[static] Dispatched when a label will be deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedDELETING_NODE : String = deletingNode
[static] Dispatched when a node will be deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedDELETING_PORT : String = deletingPort
[static] Dispatched when a port will be deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedDELETING_STRIPE : String = deletingStripe
[static] Dispatched when a stripe of a table node will be deleted by the TableEditorInputMode.
GraphEditorEvent
 InheritedEDGE_CREATED : String = edgeCreated
[static] Dispatched when a new edge has been created.
GraphEditorEvent
 InheritedEDGE_CREATION_STARTED : String = edgeCreationStarted
[static] Dispatched when a new edge creation has been initialized.
GraphEditorEvent
 InheritedEDGE_DELETED : String = edgeDeleted
[static] Dispatched when an edge has been deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedITEM_CLICKED : String = itemClicked
[static] Dispatched when a graph element has been clicked.
GraphEditorEvent
 InheritedLABEL_CHANGED : String = labelChanged
[static] Dispatched when a label has been edited.
GraphEditorEvent
 InheritedLABEL_CREATED : String = labelCreated
[static] Dispatched when a new label has been created.
GraphEditorEvent
 InheritedLABEL_DELETED : String = labelDeleted
[static] Dispatched when a label has been deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedNODE_CREATED : String = nodeCreated
[static] Dispatched when a new node has been created.
GraphEditorEvent
 InheritedNODE_DELETED : String = nodeDeleted
[static] Dispatched when a node has been deleted by the GraphEditorInputMode.
GraphEditorEvent
  NODE_REPARENTED : String = nodeReparented
[static] Dispatched when a node has been assigned to a new parent.
GraphEditorHierarchyEvent
 InheritedPORT_CREATED : String = portCreated
[static] Dispatched when a new port has been created.
GraphEditorEvent
 InheritedPORT_DELETED : String = portDeleted
[static] Dispatched when a port has been deleted by the GraphEditorInputMode.
GraphEditorEvent
 InheritedSTRIPE_DELETED : String = stripeDeleted
[static] Dispatched when a stripe of a table node has been deleted by the TableEditorInputMode.
GraphEditorEvent
Property Detail
newParentproperty
newParent:INode  [read-only]

The new parent of the node after the reparenting gesture of the user.


Implementation
    public function get newParent():INode
oldParentproperty 
oldParent:INode  [read-only]

The parent of the node before it was reparented by the user.


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

Parameters
type:String — The type of the event.
 
node:INode — The node which was reparented.
 
oldParent:INode — The old parent of the node before the reparenting.
 
newParent:INode — The new parent of the node after the reparenting.
 
graph:IGraph — The graph which contains or contained the item.
 
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_REPARENTEDConstant
public static const NODE_REPARENTED:String = nodeReparented

Dispatched when a node has been assigned to a new parent.