Packagecom.yworks.yfiles.layout
Classpublic class LabelLayoutConstants
InheritanceLabelLayoutConstants Inheritance YObject Inheritance Object

This interface defines constants relevant for the automatic labeling process.

The specifiers PLACE_AT_SOURCE, PLACE_AT_TARGET and PLACE_AT_CENTER express at what approximate location along an edge path a label should be placed by a labeling algorithm.

The specifiers PLACE_ON_EDGE, PLACE_LEFT_OF_EDGE, or PLACE_RIGHT_OF_EDGE express on which side of the edge path a label should be placed by a labeling algorithm.

The specifier PLACE_ANYWHERE expresses that the label can be placed anywhere along the edge or on any side of the edge.

ORed combinations of edge label layout constants like ( PLACE_AT_SOURCE | PLACE_RIGHT_OF_EDGE) can be used as preferred placement hints.

See also

com.yworks.yfiles.layout.EdgeLabelLayout.preferredPlacementDescriptor
PLACE_AT_SOURCE
PLACE_AT_TARGET
PLACE_AT_CENTER
PLACE_ON_EDGE
PLACE_LEFT_OF_EDGE
PLACE_RIGHT_OF_EDGE
PLACE_ANYWHERE


Public Methods
 MethodDefined By
 Inherited
equals(o:Object):Boolean
YObject
 Inherited
getClass():Class
YObject
 Inherited
hashCode():int
YObject
Public Constants
 ConstantDefined By
  PLACE_ANYWHERE : int = 0
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACE_AT_CENTER : int = 4
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACE_AT_SOURCE : int = 1
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACE_AT_TARGET : int = 2
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACE_LEFT_OF_EDGE : int = 16
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACEMENT_ALONG_EDGE_MASK : int = 7
[static] Placement specifier mask.
LabelLayoutConstants
  PLACEMENT_ON_SIDE_OF_EDGE_MASK : int = 56
[static] Placement specifier mask.
LabelLayoutConstants
  PLACE_ON_EDGE : int = 8
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
  PLACE_RIGHT_OF_EDGE : int = 32
[static] Preferred placement specifier for edge labels.
LabelLayoutConstants
Constant Detail
PLACE_ANYWHEREConstant
public static const PLACE_ANYWHERE:int = 0

Preferred placement specifier for edge labels. Expresses that the label can be placed anywhere along the edge or on any side of the edge.

PLACE_AT_CENTERConstant 
public static const PLACE_AT_CENTER:int = 4

Preferred placement specifier for edge labels. Expresses that the label should be placed near the center of the edge path.

PLACE_AT_SOURCEConstant 
public static const PLACE_AT_SOURCE:int = 1

Preferred placement specifier for edge labels. Expresses that the label should be placed near the source node of an edge.

PLACE_AT_TARGETConstant 
public static const PLACE_AT_TARGET:int = 2

Preferred placement specifier for edge labels. Expresses that the label should be placed near the target node of an edge.

PLACE_LEFT_OF_EDGEConstant 
public static const PLACE_LEFT_OF_EDGE:int = 16

Preferred placement specifier for edge labels. Expresses that the label should be placed on the left hand side of the edge path if looking from the source node into the direction of the target node.

PLACE_ON_EDGEConstant 
public static const PLACE_ON_EDGE:int = 8

Preferred placement specifier for edge labels. Expresses that the label should be placed on the path of the edge.

PLACE_RIGHT_OF_EDGEConstant 
public static const PLACE_RIGHT_OF_EDGE:int = 32

Preferred placement specifier for edge labels. Expresses that the label should be placed on the right hand side of the edge path if looking from the source node into the direction of the target node.

PLACEMENT_ALONG_EDGE_MASKConstant 
public static const PLACEMENT_ALONG_EDGE_MASK:int = 7

Placement specifier mask. Masks all placement specifiers that are not one of PLACE_AT_TARGET, PLACE_AT_SOURCE, or PLACE_AT_CENTER.

See also

PLACEMENT_ON_SIDE_OF_EDGE_MASKConstant 
public static const PLACEMENT_ON_SIDE_OF_EDGE_MASK:int = 56

Placement specifier mask. Masks all placement specifiers that are not one of PLACE_ON_EDGE, PLACE_LEFT_OF_EDGE, or PLACE_RIGHT_OF_EDGE.

See also