Package | com.yworks.graph.model |
Class | public class LabelLayerPolicy |
Inheritance | LabelLayerPolicy Object |
Implements | IEnum |
GraphModelManager
.
See also
Method | Defined By | ||
---|---|---|---|
LabelLayerPolicy(policyName:String) | LabelLayerPolicy | ||
toString():String | LabelLayerPolicy | ||
valueOf(s:Object):LabelLayerPolicy [static] | LabelLayerPolicy |
Constant | Defined By | ||
---|---|---|---|
AT_OWNER : LabelLayerPolicy [static]
The labels will be visualized directly on top of their owner. | LabelLayerPolicy | ||
AT_OWNER_LEVEL : LabelLayerPolicy [static]
The labels will be visualized in the same layer as their owner. | LabelLayerPolicy | ||
ON_TOP_OF_OWNER_LEVEL : LabelLayerPolicy [static]
The labels will be visualized on top of the layer their owner is placed in. | LabelLayerPolicy | ||
SEPARATE_LAYER : LabelLayerPolicy [static]
All labels will be visualized in one of two separate layers, one for node labels and one for edge labels. | LabelLayerPolicy | ||
values : Array [static] | LabelLayerPolicy |
LabelLayerPolicy | () | Constructor |
public function LabelLayerPolicy(policyName:String)
policyName:String |
toString | () | method |
public function toString():String
ReturnsString |
valueOf | () | method |
public static function valueOf(s:Object):LabelLayerPolicy
Parameters
s:Object |
LabelLayerPolicy |
AT_OWNER | Constant |
public static const AT_OWNER:LabelLayerPolicy
The labels 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:LabelLayerPolicy
The labels will be visualized in the same layer as their owner.
In this layer the z-orders of a label and its owner are independent so a label 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:LabelLayerPolicy
The labels will be visualized on top of the layer their owner is placed in.
This way all labels of nodes and edges in one layer are placed in a separate layer on top of their owners' layer. They only change their label 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:LabelLayerPolicy
All labels will be visualized in one of two separate layers, one for node labels and one for edge labels.
For node labels the GraphModelManager
's nodeLabelGroup
is used, edge labels
are placed in its edgeLabelGroup
.
See also
values | Constant |
public static const values:Array