Packagecom.yworks.graph.model
Interfacepublic interface IZOrderSupport extends flash.events.IEventDispatcher
Implementors DefaultZOrderSupport

This interface is used as model to store z-order information for IModelItems. If an implementation is returned by the graph lookup it is used by the GraphModelManager of any GraphCanvasComponent this graph is assigned to. The graph model manager compares the z-orders of model items in the same layer to decide in which order they shall be rendered.



Public Methods
 MethodDefined By
  
The z-order of a model item determines its render order in comparison to other model items.
IZOrderSupport
  
setZOrder(item:IModelItem, order:int):void
IZOrderSupport
Events
 Event Summary Defined By
  Dispatched when a change of the z-order of one of the IModelItems occurs.IZOrderSupport
Method Detail
getZOrder()method
public function getZOrder(item:IModelItem):int

The z-order of a model item determines its render order in comparison to other model items. Items having a smaller z-order are drawn behind those with higher z-orders. The rendering order of items having an equal z-order is undetermined.

Parameters

item:IModelItem

Returns
int
setZOrder()method 
public function setZOrder(item:IModelItem, order:int):void

Parameters

item:IModelItem
 
order:int

Event Detail
zOrderChanged Event
Event Object Type: com.yworks.graph.model.ZOrderEvent
ZOrderEvent.type property = com.yworks.graph.model.ZOrderEvent.Z_ORDER_CHANGED

Dispatched when a change of the z-order of one of the IModelItems occurs.

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