documentationfor yFiles for HTML 2.6

EdgeSegmentLabelModel

An edge label model that allows placement of labels relative to an edge segment at a set of continuous positions at specified sides of the edge path.

Inheritance Hierarchy
EdgeSegmentLabelModel
Implemented Interfaces

Remarks

The set of positions can be influenced by specifying the sideOfEdge value that controls on which side of the edge labels positions should be considered. Furthermore, it's possible to specify distance values that control the distance between label and edge and between label and nodes.

If a label model parameter is created ON_EDGE, the label's center is usually placed on the edge. It can be shifted by specifying a offset value but the distance value is ignored. For all other values of EdgeSides the total distance between the label bounds and the edge path is the sum of offset and distance.

The label placements use a specified segment index from the source or target side and a ratio on this segment. This is the main difference to the EdgePathLabelModel which only uses a ratio value of the full edge path.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.EdgeSegmentLabelModel

See Also

Constructors

Properties

Methods