The members of this enumeration specify where the label of a link is placed and how it is oriented relatively to the link segments. These constants can be used as parameters of the setTextStyle method of the DiagramLink class.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public enum LinkTextStyle |
Member name | Description | |
---|---|---|
![]() |
Center |
The text is displayed horizontally above the middle link segment or control point, depending on whether there are an odd or even number of segments. |
![]() |
Follow |
The label text starts from the first point of the link and follows the path defined by the link segments. This style is useful for displaying long text. |
![]() |
OverLongestSegment |
The text follows the longest link segment and is displayed centered at the segment's middle point. |
![]() |
Rotate |
The text is displayed rotated at the same angle as the segment where the text is placed. A long enough segment from the middle link segments is chosen for that purpose. |