Search
DiagramLink.addLabel Method (LinkLabel)
See Also
 

Adds a new label to this link.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void addLabel (
    LinkLabel label
)

 Parameters

label

A LinkLabel instance.

 Remarks

The label can be associated with a specific segment or control point of the link, or its position can be specified as a point along the link's length. To set the position of a label, call setSegmentPosition, setControlPointPosition or setLinkLengthPosition. Each label can be rendered using different color and font, specified via the setTextColor and setFont methods.

 See Also