Packagecom.yworks.graph.model
Classpublic class PortLayerPolicy
InheritancePortLayerPolicy Inheritance Object
Implements IEnum

Enumeration which determines at which visual layer ports shall be inserted by the GraphModelManager.

See also

com.yworks.graph.model.GraphModelManager


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



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

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

Parameters

s:Object

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

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