Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum OverrunStyle extends java.lang.Enum<OverrunStyle>
Enum Constant and Description |
---|
CENTER_ELLIPSIS
Trims out the center of the string being displayed and replaces the
middle three characters with "...".
|
CENTER_WORD_ELLIPSIS
Same as CENTER_ELLIPSIS but ensures that the "..." occurs between full
words.
|
CLIP
Any text which exceeds the bounds of the label will be clipped.
|
ELLIPSIS
If the text of the label exceeds the bounds of the label, then the last
three characters which can be displayed will be "...".
|
LEADING_ELLIPSIS
Same as ELLIPSIS but puts the "..." at the beginning of the text instead
of at the end
|
LEADING_WORD_ELLIPSIS
Same as WORD_ELLIPSIS but puts the "..." at the beginning of the text
instead of at the end
|
WORD_ELLIPSIS
Same as ELLIPSIS, but first removes any partial words at the label
boundary and then applies the ellipsis.
|
Modifier and Type | Method and Description |
---|---|
static OverrunStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OverrunStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OverrunStyle CLIP
public static final OverrunStyle ELLIPSIS
public static final OverrunStyle WORD_ELLIPSIS
public static final OverrunStyle CENTER_ELLIPSIS
public static final OverrunStyle CENTER_WORD_ELLIPSIS
public static final OverrunStyle LEADING_ELLIPSIS
public static final OverrunStyle LEADING_WORD_ELLIPSIS
public static OverrunStyle[] values()
for (OverrunStyle c : OverrunStyle.values()) System.out.println(c);
public static OverrunStyle 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 nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to