If the text of the label exceeds the bounds of the label, then the last
three characters which can be displayed will be "...". If the label is
too short to even display that, then only as many "." as possible will
be shown.
Same as ELLIPSIS, but first removes any partial words at the label
boundary and then applies the ellipsis. This ensures that the last
characters displayed prior to the ellipsis are part of a full word.
Where a full word cannot be displayed, this acts like ELLIPSIS and
displays as many characters as possible.
Trims out the center of the string being displayed and replaces the
middle three characters with "...". The first and last characters of
the string are always displayed in the label, unless the label becomes
so short that it cannot display anything other than the ellipsis.
CENTER_WORD_ELLIPSIS
public static final OverrunStyle CENTER_WORD_ELLIPSIS
Same as CENTER_ELLIPSIS but ensures that the "..." occurs between full
words. If the label becomes so short that it is not possible to trim
any additional words, then partial words are displayed and this behaves
the same as CENTER_ELLIPSIS
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (OverrunStyle c : OverrunStyle.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.