@API(type=EXTENDABLE, src=PRIVATE) public enum TextAttribute extends java.lang.Enum<TextAttribute>
AttributedString
attributes.
Similar to the TextAttribute
class.Enum Constant and Description |
---|
FONT
Specifies a font for a text interval.
|
FOREGROUND
The foreground color for a piece of
AttributedString . |
POSTURE
The font posture (like italic, regular)
|
POSTURE_OBLIQUE
The standard italic posture value.
|
POSTURE_REGULAR
The standard posture value, upright.
|
RELATIVE_SIZE
The relative size of the font
|
RELATIVE_SIZE_SMALL
A value for the relative size.
|
RUN_DIRECTION
Attribute key for the run direction of the line.
|
RUN_DIRECTION_LTR
Left-to-right run direction.
|
RUN_DIRECTION_RTL
Right-to-left run direction.
|
STRIKETHROUGH
Strike through
|
UNDERLINE
Underline.
|
WEIGHT
The font weight of
AttributedString . |
WEIGHT_BOLD
Value for the weight.
|
Modifier and Type | Method and Description |
---|---|
static TextAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAttribute FOREGROUND
AttributedString
.public static final TextAttribute WEIGHT
AttributedString
.public static final TextAttribute WEIGHT_BOLD
public static final TextAttribute POSTURE
public static final TextAttribute POSTURE_REGULAR
POSTURE
.POSTURE
public static final TextAttribute POSTURE_OBLIQUE
POSTURE
public static final TextAttribute RELATIVE_SIZE
public static final TextAttribute RELATIVE_SIZE_SMALL
RELATIVE_SIZE
public static final TextAttribute RUN_DIRECTION
Boolean
. The default value is
null, which indicates that the standard Bidi algorithm for
determining run direction should be used with the value Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT
.
The constants RUN_DIRECTION_RTL
and RUN_DIRECTION_LTR
are provided.
This determines the value passed to the Bidi
constructor to select the primary direction of
the text in the paragraph.
Note: This attribute should have the same value for all the text in a paragraph, otherwise the behavior is undetermined.
Bidi
public static final TextAttribute RUN_DIRECTION_LTR
RUN_DIRECTION
public static final TextAttribute RUN_DIRECTION_RTL
RUN_DIRECTION
public static final TextAttribute FONT
Font
.public static final TextAttribute STRIKETHROUGH
public static final TextAttribute UNDERLINE
Boolean
.public static TextAttribute[] values()
for (TextAttribute c : TextAttribute.values()) System.out.println(c);
public static TextAttribute 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© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.