Packagecom.yworks.graph.model
Classpublic class EdgeLayerPolicy
InheritanceEdgeLayerPolicy Inheritance Object
Implements IEnum

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

See also

com.yworks.graph.model.GraphModelManager


Public Methods
 MethodDefined By
  
EdgeLayerPolicy(policyName:String)
EdgeLayerPolicy
  
toString():String
EdgeLayerPolicy
  
[static]
EdgeLayerPolicy
Public Constants
 ConstantDefined By
  AT_NODE_LEVEL : EdgeLayerPolicy
[static] An edge will be visualized in the same layer as the child nodes of the common ancestor of the edge's source and target nodes.
EdgeLayerPolicy
  BEHIND_GROUP_NODES : EdgeLayerPolicy
[static] The visualization layer of an edge depends on the hierarchical relation of its source and target node and is chosen to give a 'natural' look and feel: If it is a self loop, it is placed in the same layer as the node it is connected to. If source and target node of the edge belong to the same group node, it is placed in a layer behind these nodes. If source and target node of the edge belong to different group nodes, it is placed in a layer in front of both nodes.
EdgeLayerPolicy
  SEPARATE_LAYER : EdgeLayerPolicy
[static] All edges will be visualized in a separate edge layer in front of all nodes.
EdgeLayerPolicy
  values : Array
[static]
EdgeLayerPolicy
Constructor Detail
EdgeLayerPolicy()Constructor
public function EdgeLayerPolicy(policyName:String)



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

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

Parameters

s:Object

Returns
EdgeLayerPolicy
Constant Detail
AT_NODE_LEVELConstant
public static const AT_NODE_LEVEL:EdgeLayerPolicy

An edge will be visualized in the same layer as the child nodes of the common ancestor of the edge's source and target nodes.

If source and target node of the edge belong to the same group node, this results in the edge being at their layer. Otherwise the nearest common ancestor node of the source and target node is determined and the edge is placed in its child layer.

BEHIND_GROUP_NODESConstant 
public static const BEHIND_GROUP_NODES:EdgeLayerPolicy

The visualization layer of an edge depends on the hierarchical relation of its source and target node and is chosen to give a 'natural' look and feel:

SEPARATE_LAYERConstant 
public static const SEPARATE_LAYER:EdgeLayerPolicy

All edges will be visualized in a separate edge layer in front of all nodes.

See also

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