com.mindfusion.diagramming
Class LinkTextStyle

java.lang.Object
  extended by com.mindfusion.diagramming.LinkTextStyle

public final class LinkTextStyle
extends java.lang.Object

The members of this enumeration specify where the label of an arrow is placed and how it is oriented relatively to the arrow segments. These constants can be used as parameters of the DiagramLink.setTextStyle(int) method of the DiagramLink class.


Field Summary
static int Center
          The text is displayed horizontally above the middle arrow segment or control point, depending on whether there are an odd or even number of segments.
static int Follow
          The label text starts from the first point of the arrow and follows the path defined by the arrow segments.
static int OverLongestSegment
          The text follows the longest arrow segment and is displayed centered at the segment’s middle point.
static int Rotate
          The text is displayed rotated at the same angle as the segment where the text is placed.
 
Constructor Summary
LinkTextStyle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Center

public static final int Center
The text is displayed horizontally above the middle arrow segment or control point, depending on whether there are an odd or even number of segments.

See Also:
Constant Field Values

Rotate

public static final int 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 arrow segments is chosen for that purpose.

See Also:
Constant Field Values

OverLongestSegment

public static final int OverLongestSegment
The text follows the longest arrow segment and is displayed centered at the segment’s middle point.

See Also:
Constant Field Values

Follow

public static final int Follow
The label text starts from the first point of the arrow and follows the path defined by the arrow segments. This style is useful for displaying long text.

See Also:
Constant Field Values
Constructor Detail

LinkTextStyle

public LinkTextStyle()