Packagecom.yworks.graph.model
Classpublic class ZOrderEvent
InheritanceZOrderEvent Inheritance flash.events.Event

An event containing information about the change of the z-order value of an IModelItem.

See also

com.yworks.graph.model.IZOrderSupport


Public Properties
 PropertyDefined By
  item : IModelItem
[read-only] The model item whose z-order changed.
ZOrderEvent
  newOrder : int
[read-only] The new z-order after the change.
ZOrderEvent
  oldOrder : int
[read-only] The z-order before it has been changed.
ZOrderEvent
Public Methods
 MethodDefined By
  
ZOrderEvent(type:String, item:IModelItem, oldOrder:int, newOrder:int, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance.
ZOrderEvent
  
clone():Event
[override]
ZOrderEvent
Public Constants
 ConstantDefined By
  Z_ORDER_CHANGED : String = zOrderChanged
[static] The ZOrderEvent.Z_ORDER_CHANGED constant defines the value of the type property of the event object for a zOrderChanged event.
ZOrderEvent
Property Detail
itemproperty
item:IModelItem  [read-only]

The model item whose z-order changed.


Implementation
    public function get item():IModelItem
newOrderproperty 
newOrder:int  [read-only]

The new z-order after the change.


Implementation
    public function get newOrder():int
oldOrderproperty 
oldOrder:int  [read-only]

The z-order before it has been changed.


Implementation
    public function get oldOrder():int
Constructor Detail
ZOrderEvent()Constructor
public function ZOrderEvent(type:String, item:IModelItem, oldOrder:int, newOrder:int, 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
 
oldOrder:int — The z-order before it had been changed.
 
newOrder:int — The new z-order after the change.
 
bubbles:Boolean (default = false)true if this event bubbles
 
cancelable:Boolean (default = false)true if this event is cancelable
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
Z_ORDER_CHANGEDConstant
public static const Z_ORDER_CHANGED:String = zOrderChanged

The ZOrderEvent.Z_ORDER_CHANGED constant defines the value of the type property of the event object for a zOrderChanged event.