| Package | com.yworks.graph.model |
| Class | public class GraphEvent |
| Inheritance | GraphEvent flash.events.Event |
| Subclasses | BendEvent, EdgeEvent, LabelEvent, NodeEvent, PortEvent |
GraphEventKind.
See also
| Property | Defined By | ||
|---|---|---|---|
| graph : IGraph [read-only]
The graph that is the source of this graph event. | GraphEvent | ||
| item : IModelItem [read-only]
The model item that was added, updated or removed. | GraphEvent | ||
| kind : String
Gets or sets the kind of graph event this event informs about. | GraphEvent | ||
| Method | Defined By | ||
|---|---|---|---|
GraphEvent(type:String, item:IModelItem, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance
| GraphEvent | ||
clone():Event [override]
| GraphEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| FOLDING_STATE_CHANGED : String = foldingStateChanged [static]
The GraphEvent.FOLDING_STATE_CHANGED constant defines the value of the
type property of the event object for a foldingStateChanged event. | GraphEvent | ||
| GRAPH_CHANGED : String = graphChanged [static]
The GraphEvent.GRAPH_CHANGED constant defines the value of the
type property of the event object for a graphChanged event. | GraphEvent | ||
| graph | property |
graph:IGraph [read-only] The graph that is the source of this graph event.
public function get graph():IGraph| item | property |
item:IModelItem [read-only] The model item that was added, updated or removed.
public function get item():IModelItem| kind | property |
kind:StringGets or sets the kind of graph event this event informs about.
public function get kind():String public function set kind(value:String):voidSee also
| GraphEvent | () | Constructor |
public function GraphEvent(type:String, item:IModelItem, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)Creates a new instance
Parameterstype:String — The type of the Event as String
| |
item:IModelItem — The item to which this event is related
| |
kind:String — A String value which gives a closer specification of this event as defined by GraphEventKind
| |
graph:IGraph — The graph to which this event is related
| |
bubbles:Boolean (default = false) — true if this event bubbles
| |
cancelable:Boolean (default = false) — true if this event is cancelable
|
See also
| clone | () | method |
override public function clone():EventReturns
Event |
| FOLDING_STATE_CHANGED | Constant |
public static const FOLDING_STATE_CHANGED:String = foldingStateChanged
The GraphEvent.FOLDING_STATE_CHANGED constant defines the value of the
type property of the event object for a foldingStateChanged event.
| GRAPH_CHANGED | Constant |
public static const GRAPH_CHANGED:String = graphChanged
The GraphEvent.GRAPH_CHANGED constant defines the value of the
type property of the event object for a graphChanged event.