| Package | com.yworks.graph.input |
| Class | public class GraphEditorHierarchyEvent |
| Inheritance | GraphEditorHierarchyEvent GraphEditorEvent flash.events.Event |
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.
| Property | Defined By | ||
|---|---|---|---|
![]() | graph : IGraph [read-only]
Returns the graph the item was created in / removed from. | GraphEditorEvent | |
![]() | item : 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 | ||
| Method | Defined By | ||
|---|---|---|---|
GraphEditorHierarchyEvent(type:String, node:INode, oldParent:INode, newParent:INode, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false) | GraphEditorHierarchyEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
![]() | BEND_CHANGED : String = bendChanged [static]
Dispatched when a new bend has been created. | GraphEditorEvent | |
![]() | BEND_CREATED : String = bendCreated [static]
Dispatched when a new bend has been created. | GraphEditorEvent | |
![]() | BEND_DELETED : String = bendDeleted [static]
Dispatched when a bend has been deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | CURRENT_ITEM_CHANGED : String = currentItemChanged [static]
Dispatched when a when the current item has changed. | GraphEditorEvent | |
![]() | DELETING_BEND : String = deletingBend [static]
Dispatched when a bend will be deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | DELETING_EDGE : String = deletingEdge [static]
Dispatched when an edge will be deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | DELETING_LABEL : String = deletingLabel [static]
Dispatched when a label will be deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | DELETING_NODE : String = deletingNode [static]
Dispatched when a node will be deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | DELETING_PORT : String = deletingPort [static]
Dispatched when a port will be deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | DELETING_STRIPE : String = deletingStripe [static]
Dispatched when a stripe of a table node will be deleted by the TableEditorInputMode. | GraphEditorEvent | |
![]() | EDGE_CREATED : String = edgeCreated [static]
Dispatched when a new edge has been created. | GraphEditorEvent | |
![]() | EDGE_CREATION_STARTED : String = edgeCreationStarted [static]
Dispatched when a new edge creation has been initialized. | GraphEditorEvent | |
![]() | EDGE_DELETED : String = edgeDeleted [static]
Dispatched when an edge has been deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | ITEM_CLICKED : String = itemClicked [static]
Dispatched when a graph element has been clicked. | GraphEditorEvent | |
![]() | LABEL_CHANGED : String = labelChanged [static]
Dispatched when a label has been edited. | GraphEditorEvent | |
![]() | LABEL_CREATED : String = labelCreated [static]
Dispatched when a new label has been created. | GraphEditorEvent | |
![]() | LABEL_DELETED : String = labelDeleted [static]
Dispatched when a label has been deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | NODE_CREATED : String = nodeCreated [static]
Dispatched when a new node has been created. | GraphEditorEvent | |
![]() | NODE_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 | ||
![]() | PORT_CREATED : String = portCreated [static]
Dispatched when a new port has been created. | GraphEditorEvent | |
![]() | PORT_DELETED : String = portDeleted [static]
Dispatched when a port has been deleted by the GraphEditorInputMode. | GraphEditorEvent | |
![]() | STRIPE_DELETED : String = stripeDeleted [static]
Dispatched when a stripe of a table node has been deleted by the TableEditorInputMode. | GraphEditorEvent | |
| newParent | property |
newParent:INode [read-only] The new parent of the node after the reparenting gesture of the user.
public function get newParent():INode| oldParent | property |
oldParent:INode [read-only] The parent of the node before it was reparented by the user.
public function get oldParent():INode| 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.
|
| NODE_REPARENTED | Constant |
public static const NODE_REPARENTED:String = nodeReparentedDispatched when a node has been assigned to a new parent.