Search
DiagramLink.addLabel Method (String)
See Also
 

Adds a new label to this link.

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

 Syntax

Java  Copy Code

public LinkLabel addLabel (
    String text
)

 Parameters

text

The label's text.

 Return Value

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