Package | com.yworks.graph.model |
Class | public class DefaultZOrderSupport |
Inheritance | DefaultZOrderSupport flash.events.EventDispatcher |
Implements | IZOrderSupport |
Method | Defined By | ||
---|---|---|---|
DefaultZOrderSupport(graph:IGraph)
Creates a new instance for the passed graph. | DefaultZOrderSupport | ||
getZOrder(item:IModelItem):int
The z-order of a model item determines its render order in comparison to other model items. | DefaultZOrderSupport | ||
setZOrder(item:IModelItem, order:int):void | DefaultZOrderSupport |
Method | Defined By | ||
---|---|---|---|
onZOrderChanged(item:IModelItem, oldZOrder:int, newZOrder:int):void
This method is called by setZOrder if the z-order of a model items has changed. | DefaultZOrderSupport |
DefaultZOrderSupport | () | Constructor |
public function DefaultZOrderSupport(graph:IGraph)
Creates a new instance for the passed graph.
Parametersgraph:IGraph — The graph to use for undo support.
|
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 |
int |
onZOrderChanged | () | method |
protected function onZOrderChanged(item:IModelItem, oldZOrder:int, newZOrder:int):void
This method is called by setZOrder
if the z-order of a model items has changed.
It fires an event of type ZOrderEvent.Z_ORDER_CHANGED
.
Parameters
item:IModelItem — The item whose z-order has changed.
| |
oldZOrder:int — The z-order prior to the change.
| |
newZOrder:int — The new z-order after the change.
|
See also
setZOrder | () | method |