documentationfor yFiles for HTML 2.6

PreferredPlacementDescriptor

A PreferredPlacementDescriptor provides placement information for automatic edge labeling.

Inheritance Hierarchy
PreferredPlacementDescriptor

Remarks

It provides several options that influence the label placement in generic labeling algorithms and layout algorithms that support integrated label placement.

The preferred placement can describe multiple locations. For some options, like the placement along the edge, it is possible to have a combination of the valid values. These values can be connected with a logical or-operation.

The following options describe the preferred placement:

  • the placement along the edge
  • the side of the edge
  • the reference of the side
  • the rotation angle of the label
  • the reference for the rotation angle
  • the rotation behavior for label on the right side of the edge
  • the angle offset for label on the right side of the edge
  • the distance between the label and its edge segment

The PreferredPlacementDescriptor will be immutable after freeze is called.

A PreferredPlacementDescriptor must be set for each label and will be retrieved by the layout algorithms calling preferredPlacementDescriptor.

Default Values of Properties

angle0
angleOffsetOnRightSideNONE
angleReferenceABSOLUTE
angleRotationOnRightSideCLOCKWISE
distanceToEdge-1
placeAlongEdgeAT_CENTER
sideOfEdgeON_EDGE
sideReferenceRELATIVE_TO_EDGE_FLOW

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.PreferredPlacementDescriptor

See Also

Constructors

Properties

Methods

Static Methods