public enum LinkTextStyle extends java.lang.Enum<LinkTextStyle>
DiagramLink.setTextStyle(com.mindfusion.diagramming.LinkTextStyle)
method of the DiagramLink
class.Enum Constant and 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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static LinkTextStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LinkTextStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkTextStyle Center
public static final LinkTextStyle Rotate
public static final LinkTextStyle OverLongestSegment
public static final LinkTextStyle Follow
public static LinkTextStyle[] values()
for (LinkTextStyle c : LinkTextStyle.values()) System.out.println(c);
public static LinkTextStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null