Package ro.sync.exml.view.graphics
Enum Class TextAttribute
- All Implemented Interfaces:
Serializable
,Comparable<TextAttribute>
,Constable
Constants for the
AttributedString
attributes.
Similar to the TextAttribute
class.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a font for a text interval.The foreground color for a piece ofAttributedString
.The font posture (like italic, regular)The standard italic posture value.The standard posture value, upright.The relative size of the fontA value for the relative size.Attribute key for the run direction of the line.Left-to-right run direction.Right-to-left run direction.Strike throughUnderline.The font weight ofAttributedString
.Value for the weight. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAttribute
Returns the enum constant of this class with the specified name.static TextAttribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOREGROUND
The foreground color for a piece ofAttributedString
. -
WEIGHT
The font weight ofAttributedString
. -
WEIGHT_BOLD
Value for the weight. -
POSTURE
The font posture (like italic, regular) -
POSTURE_REGULAR
The standard posture value, upright. This is the default value forPOSTURE
.- See Also:
-
POSTURE_OBLIQUE
The standard italic posture value.- See Also:
-
RELATIVE_SIZE
The relative size of the font -
RELATIVE_SIZE_SMALL
A value for the relative size. Imposes a smaller size for the font.- See Also:
-
RUN_DIRECTION
Attribute key for the run direction of the line. Values are instances ofBoolean
. The default value is null, which indicates that the standard Bidi algorithm for determining run direction should be used with the valueBidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT
.The constants
RUN_DIRECTION_RTL
andRUN_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.
- See Also:
-
RUN_DIRECTION_LTR
Left-to-right run direction.- See Also:
-
RUN_DIRECTION_RTL
Right-to-left run direction.- See Also:
-
FONT
Specifies a font for a text interval. The value should be an instance ofFont
. -
STRIKETHROUGH
Strike through -
UNDERLINE
Underline. The value should be an instance ofBoolean
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-