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 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
Returns public function setZOrder(item:IModelItem, order:int):void Parameters
Event Object Type: com.yworks.graph.model.ZOrderEventZOrderEvent.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.
Wed Oct 7 2015, 04:52 PM +02:00