Package | com.yworks.graph.model |
Class | public class PortLayerPolicy |
Inheritance | PortLayerPolicy Object |
Implements | IEnum |
GraphModelManager
.
See also
Method | Defined By | ||
---|---|---|---|
PortLayerPolicy(policyName:String) | PortLayerPolicy | ||
toString():String | PortLayerPolicy | ||
valueOf(s:Object):PortLayerPolicy [static] | PortLayerPolicy |
Constant | Defined By | ||
---|---|---|---|
AT_OWNER : PortLayerPolicy [static]
The ports will be visualized directly on top of their owner. | PortLayerPolicy | ||
AT_OWNER_LEVEL : PortLayerPolicy [static]
The ports will be visualized in the same layer as their owner. | PortLayerPolicy | ||
ON_TOP_OF_OWNER_LEVEL : PortLayerPolicy [static]
The ports will be visualized on top of the layer their owner is placed in. | PortLayerPolicy | ||
SEPARATE_LAYER : PortLayerPolicy [static]
All ports will be visualized in one separate layer. | PortLayerPolicy | ||
values : Array [static] | PortLayerPolicy |
PortLayerPolicy | () | Constructor |
public function PortLayerPolicy(policyName:String)
policyName:String |
toString | () | method |
public function toString():String
ReturnsString |
valueOf | () | method |
AT_OWNER | Constant |
public static const AT_OWNER:PortLayerPolicy
The ports will be visualized directly on top of their owner.
If the owner changes its layer or z-order the labels are changing with it.
AT_OWNER_LEVEL | Constant |
public static const AT_OWNER_LEVEL:PortLayerPolicy
The ports will be visualized in the same layer as their owner.
In this layer the z-orders of a port and its owner are independent so a port might as well be moved behind its owner as e.g. in front of all model items in this layer. This is the most flexible policy but it can also lead to confusing z-orderings.
ON_TOP_OF_OWNER_LEVEL | Constant |
public static const ON_TOP_OF_OWNER_LEVEL:PortLayerPolicy
The ports will be visualized on top of the layer their owner is placed in.
This way all ports of port owners in one layer are placed in a separate layer on top of their owners' layer. They only change their port layer if the owner does change its layer itself but aren't influenced by the z-order of their owner.
SEPARATE_LAYER | Constant |
public static const SEPARATE_LAYER:PortLayerPolicy
All ports will be visualized in one separate layer.
More precisely the GraphModelManager
's portGroup
is used.
See also
values | Constant |
public static const values:Array