Search
LinkLabel Class
Remarks See Also
 





Represents a label displayed by a DiagramLink. New labels can be added to a link by calling its addLabel method.

Namespace: MindFusion.Diagramming
File: LinkLabel.js

 Syntax

JavaScript  Copy Code

// class
LinkLabel.prototype = {}

 Remarks

The position of a label is determined by where it is pinned along the link's geometry, and offset from the pin point, as set using setControlPointPosition, setSegmentPosition and setLinkLengthPosition methods. In addition, the horizontalAlign and verticalAlign properties specify whether the label is centered on its pin point or aligned to it.

Set the autoArrange property to let the diagram set label's position automatically, avoiding overlaps with nodes and other link labels.

You can let users arrange labels manually by setting the behavior property of DiagramView to MoveLabels.

 Inheritance Hierarchy

MindFusion.Diagramming.ItemLabel
    MindFusion.Diagramming.LinkLabel

 See Also