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

An 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



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
GraphEditorEvent(type:String, item:IModelItem, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new event.
GraphEditorEvent
Public Constants
 ConstantDefined 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
Property Detail
graphproperty
graph:IGraph  [read-only]

Returns the graph the item was created in / removed from.


Implementation
    public function get graph():IGraph
itemproperty 
item:IModelItem  [read-only]

Returns the item that was created, changed or removed.


Implementation
    public function get item():IModelItem
Constructor Detail
GraphEditorEvent()Constructor
public function GraphEditorEvent(type:String, item:IModelItem, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new event.

Parameters
type: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.
Constant Detail
BEND_CHANGEDConstant
public static const BEND_CHANGED:String = bendChanged

Dispatched when a new bend has been created.

BEND_CREATEDConstant 
public static const BEND_CREATED:String = bendCreated

Dispatched when a new bend has been created.

BEND_DELETEDConstant 
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_CHANGEDConstant 
public static const CURRENT_ITEM_CHANGED:String = currentItemChanged

Dispatched when a when the current item has changed.

DELETING_BENDConstant 
public static const DELETING_BEND:String = deletingBend

Dispatched when a bend will be deleted by the GraphEditorInputMode.

DELETING_EDGEConstant 
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_LABELConstant 
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_NODEConstant 
public static const DELETING_NODE:String = deletingNode

Dispatched when a node will be deleted by the GraphEditorInputMode.

DELETING_PORTConstant 
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_STRIPEConstant 
public static const DELETING_STRIPE:String = deletingStripe

Dispatched when a stripe of a table node will be deleted by the TableEditorInputMode.

EDGE_CREATEDConstant 
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_STARTEDConstant 
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_DELETEDConstant 
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_CLICKEDConstant 
public static const ITEM_CLICKED:String = itemClicked

Dispatched when a graph element has been clicked.

LABEL_CHANGEDConstant 
public static const LABEL_CHANGED:String = labelChanged

Dispatched when a label has been edited.

LABEL_CREATEDConstant 
public static const LABEL_CREATED:String = labelCreated

Dispatched when a new label has been created.

LABEL_DELETEDConstant 
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_CREATEDConstant 
public static const NODE_CREATED:String = nodeCreated

Dispatched when a new node has been created.

NODE_DELETEDConstant 
public static const NODE_DELETED:String = nodeDeleted

Dispatched when a node has been deleted by the GraphEditorInputMode.

PORT_CREATEDConstant 
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_DELETEDConstant 
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_DELETEDConstant 
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.