| Package | com.yworks.graph.model |
| Class | public class EdgeEvent |
| Inheritance | EdgeEvent GraphEvent flash.events.Event |
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 | |
| oldSourcePort : IPort [read-only]
The (old) source port of the edge. | EdgeEvent | ||
| oldTargetPort : IPort [read-only]
The (old) target port of the edge. | EdgeEvent | ||
| Method | Defined By | ||
|---|---|---|---|
EdgeEvent(type:String, item:IModelItem, oldSourcePort:IPort, oldTargetPort:IPort, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance. | EdgeEvent | ||
clone():Event [override]
| EdgeEvent | ||
| oldSourcePort | property |
oldSourcePort:IPort [read-only] The (old) source port of the edge.
If the event is dispatched upon edge removal or port change this is the former port.
public function get oldSourcePort():IPort| oldTargetPort | property |
oldTargetPort:IPort [read-only] The (old) target port of the edge.
If the event is dispatched upon edge removal or port change this is the former port.
public function get oldTargetPort():IPort| EdgeEvent | () | Constructor |
public function EdgeEvent(type:String, item:IModelItem, oldSourcePort:IPort, oldTargetPort:IPort, 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.
| |
oldSourcePort:IPort — The (former) source port of the item.
| |
oldTargetPort:IPort — The (former) target port of the item.
| |
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 |