Packagecom.yworks.graph.model
Classpublic class LabelLayerPolicy
InheritanceLabelLayerPolicy Inheritance Object
Implements IEnum

Enumeration which determines at which visual layer node and edge labels shall be inserted by the GraphModelManager.

See also

com.yworks.graph.model.GraphModelManager


Public Methods
 MethodDefined By
  
LabelLayerPolicy(policyName:String)
LabelLayerPolicy
  
toString():String
LabelLayerPolicy
  
[static]
LabelLayerPolicy
Public Constants
 ConstantDefined 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
Constructor Detail
LabelLayerPolicy()Constructor
public function LabelLayerPolicy(policyName:String)



Parameters
policyName:String
Method Detail
toString()method
public function toString():String

Returns
String
valueOf()method 
public static function valueOf(s:Object):LabelLayerPolicy

Parameters

s:Object

Returns
LabelLayerPolicy
Constant Detail
AT_OWNERConstant
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_LEVELConstant 
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_LEVELConstant 
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_LAYERConstant 
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

com.yworks.graph.model.GraphModelManager.nodeLabelGroup
com.yworks.graph.model.GraphModelManager.edgeLabelGroup
valuesConstant 
public static const values:Array