MindFusion.Java Package Programmer's Guide
DiagramLink.setText Method
See Also
 






Sets the text displayed over a link.

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

 Syntax

Java  Copy Code

public void setText (
    String value
)

 Parameters

value
A string containing the text

 Remarks

Sets the text that should be drawn over a link. Use this to provide to end-users a short description of the relation's purpose. The text appearance can be customized through the TextBrush and TextStyle properties.

Apart from main text, it is possible to display multiple labels per link via the LinkLabel class. Labels can automatically avoid overlapping nodes or other labels when their AutoArrange property is set.

 See Also

DiagramLink Members
DiagramLink Class
com.mindfusion.diagramming Namespace
ToolTip Property
addLabel Method