Adds a new label to this link.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public LinkLabel addLabel ( |
The label's text.
A LinkLabel instance.
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.