Package | com.yworks.graph.input |
Class | public class GraphEditorEvent |
Inheritance | GraphEditorEvent flash.events.Event |
Subclasses | GraphEditorHierarchyEvent |
Event
which is dispatched by the GraphEditorInput mode when a model item
was manipulated by the user.
The item can be retrieved in the item
property.
This event is dispatched when the user
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 |
Method | Defined By | ||
---|---|---|---|
GraphEditorEvent(type:String, item:IModelItem, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new event. | GraphEditorEvent |
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 | ||
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 |
graph | property |
graph:IGraph
[read-only] Returns the graph the item was created in / removed from.
public function get graph():IGraph
item | property |
item:IModelItem
[read-only] Returns the item that was created, changed or removed.
public function get item():IModelItem
GraphEditorEvent | () | Constructor |
public function GraphEditorEvent(type:String, item:IModelItem, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new event.
Parameterstype:String — The type of the event.
| |
item:IModelItem — The item which was created, changed or deleted.
| |
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.
|
BEND_CHANGED | Constant |
public static const BEND_CHANGED:String = bendChanged
Dispatched when a new bend has been created.
BEND_CREATED | Constant |
public static const BEND_CREATED:String = bendCreated
Dispatched when a new bend has been created.
BEND_DELETED | Constant |
public static const BEND_DELETED:String = bendDeleted
Dispatched when a bend has been deleted by the GraphEditorInputMode
.
This event will only be dispatched for bends which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a bend is removed because its edge is removed.
CURRENT_ITEM_CHANGED | Constant |
public static const CURRENT_ITEM_CHANGED:String = currentItemChanged
Dispatched when a when the current item has changed.
DELETING_BEND | Constant |
public static const DELETING_BEND:String = deletingBend
Dispatched when a bend will be deleted by the GraphEditorInputMode
.
DELETING_EDGE | Constant |
public static const DELETING_EDGE:String = deletingEdge
Dispatched when an edge will be deleted by the GraphEditorInputMode
.
This event will only be dispatched for edges which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if an edge is removed because its source or parent node is removed.
DELETING_LABEL | Constant |
public static const DELETING_LABEL:String = deletingLabel
Dispatched when a label will be deleted by the GraphEditorInputMode
.
This event will only be dispatched for labels which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a label is removed because its owner is removed.
DELETING_NODE | Constant |
public static const DELETING_NODE:String = deletingNode
Dispatched when a node will be deleted by the GraphEditorInputMode
.
DELETING_PORT | Constant |
public static const DELETING_PORT:String = deletingPort
Dispatched when a port will be deleted by the GraphEditorInputMode
.
This event will only be dispatched for ports which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a port is removed because its owner is removed.
DELETING_STRIPE | Constant |
public static const DELETING_STRIPE:String = deletingStripe
Dispatched when a stripe of a table node will be deleted by the TableEditorInputMode
.
EDGE_CREATED | Constant |
public static const EDGE_CREATED:String = edgeCreated
Dispatched when a new edge has been created.
This event will only be dispatched for bends which have been deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a bend is removed because its edge is removed.
EDGE_CREATION_STARTED | Constant |
public static const EDGE_CREATION_STARTED:String = edgeCreationStarted
Dispatched when a new edge creation has been initialized.
The item
property contains the dummy edge that will be used during edge creation.
EDGE_DELETED | Constant |
public static const EDGE_DELETED:String = edgeDeleted
Dispatched when an edge has been deleted by the GraphEditorInputMode
.
This event will only be dispatched for edges which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if an edge is removed because its source or parent node is removed.
ITEM_CLICKED | Constant |
public static const ITEM_CLICKED:String = itemClicked
Dispatched when a graph element has been clicked.
LABEL_CHANGED | Constant |
public static const LABEL_CHANGED:String = labelChanged
Dispatched when a label has been edited.
LABEL_CREATED | Constant |
public static const LABEL_CREATED:String = labelCreated
Dispatched when a new label has been created.
LABEL_DELETED | Constant |
public static const LABEL_DELETED:String = labelDeleted
Dispatched when a label has been deleted by the GraphEditorInputMode
.
This event will only be dispatched for labels which were deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a label is removed because its owner is removed.
NODE_CREATED | Constant |
public static const NODE_CREATED:String = nodeCreated
Dispatched when a new node has been created.
NODE_DELETED | Constant |
public static const NODE_DELETED:String = nodeDeleted
Dispatched when a node has been deleted by the GraphEditorInputMode
.
PORT_CREATED | Constant |
public static const PORT_CREATED:String = portCreated
Dispatched when a new port has been created.
This event will only be dispatched for ports which are created by direct user interaction. It will not be dispatched if a port is automatically created during edge creation.
PORT_DELETED | Constant |
public static const PORT_DELETED:String = portDeleted
Dispatched when a port has been deleted by the GraphEditorInputMode
.
This event will only be dispatched for ports which were deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a port is removed because its owner is removed.
STRIPE_DELETED | Constant |
public static const STRIPE_DELETED:String = stripeDeleted
Dispatched when a stripe of a table node has been deleted by the TableEditorInputMode
.
This event will only be dispatched for stripes which will be deleted by direct user interaction, i.e. which were selected when the delete key was pressed. It will not be dispatched if a stripe is removed because its table is removed.