Packagecom.yworks.graph.model
Classpublic class LabelEvent
InheritanceLabelEvent Inheritance GraphEvent Inheritance flash.events.Event

A sub class of GraphEvent which is dispatched when a label changes.

See also

GraphEvent


Public Properties
 PropertyDefined By
 Inheritedgraph : IGraph
[read-only] The graph that is the source of this graph event.
GraphEvent
 Inheriteditem : IModelItem
[read-only] The model item that was added, updated or removed.
GraphEvent
 Inheritedkind : String
Gets or sets the kind of graph event this event informs about.
GraphEvent
  oldOwner : ILabeledItem
[read-only] The owner of the label.
LabelEvent
Public Methods
 MethodDefined By
  
LabelEvent(type:String, item:IModelItem, oldOwner:ILabeledItem, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance.
LabelEvent
  
clone():Event
[override]
LabelEvent
Public Constants
 ConstantDefined By
 InheritedFOLDING_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
 InheritedGRAPH_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
Property Detail
oldOwnerproperty
oldOwner:ILabeledItem  [read-only]

The owner of the label.

If the event is dispatched upon label removal this is the former owner.


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

Creates a new instance.

Parameters
type:String — The type of the Event as String.
 
item:IModelItem — The item to which this event is related.
 
oldOwner:ILabeledItem — The (former) owner 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

Method Detail
clone()method
override public function clone():Event

Returns
Event