java.lang.Object | ||
↳ | java.text.AttributedCharacterIterator.Attribute | |
↳ | java.awt.font.TextAttribute |
The TextAttribute class defines attribute keys and attribute values for text rendering. Each TextAttributes should have the following information:
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BACKGROUND | The BACKGROUND text attribute. | ||||||||||
BIDI_EMBEDDING | The BIDI_EMBEDDING text attribute key. | ||||||||||
CHAR_REPLACEMENT | The CHAR_REPLACEMENT text attribute key. | ||||||||||
FAMILY | The FAMILY text attribute key. | ||||||||||
FONT | The FONT text attribute key. | ||||||||||
FOREGROUND | The FOREGROUND text attribute key. | ||||||||||
INPUT_METHOD_HIGHLIGHT | The INPUT_METHOD_HIGHLIGHT text attribute key. | ||||||||||
INPUT_METHOD_UNDERLINE | The INPUT_METHOD_UNDERLINE text attribute key. | ||||||||||
JUSTIFICATION | The JUSTIFICATION text attribute key. | ||||||||||
JUSTIFICATION_FULL | The Constant JUSTIFICATION_indicates the full requested width. | ||||||||||
JUSTIFICATION_NONE | The Constant JUSTIFICATION_NONE indicates that line is not allowed for justification. | ||||||||||
KERNING | The KERNING text attribute key. | ||||||||||
KERNING_ON | |||||||||||
LIGATURES | The LIGATURES text attribute key. | ||||||||||
LIGATURES_ON | |||||||||||
NUMERIC_SHAPING | The NUMERIC_SHAPING text attribute. | ||||||||||
POSTURE | The POSTURE text attribute. | ||||||||||
POSTURE_OBLIQUE | The Constant POSTURE_OBLIQUE indicates italic posture. | ||||||||||
POSTURE_REGULAR | The Constant POSTURE_REGULAR indicates regular posture. | ||||||||||
RUN_DIRECTION | The RUN_DIRECTION text attribute. | ||||||||||
RUN_DIRECTION_LTR | The Constant RUN_DIRECTION_LTR indicates left-to-right run direction. | ||||||||||
RUN_DIRECTION_RTL | The Constant RUN_DIRECTION_RTL indicates right-to-left run direction. | ||||||||||
SIZE | The SIZE text attribute. | ||||||||||
STRIKETHROUGH | The STRIKETHROUGH text attribute. | ||||||||||
STRIKETHROUGH_ON | The Constant STRIKETHROUGH_ON indicates a single strikethrough. | ||||||||||
SUPERSCRIPT | The SUPERSCRIPT text attribute. | ||||||||||
SUPERSCRIPT_SUB | The Constant SUPERSCRIPT_SUB indicates a standard subscript. | ||||||||||
SUPERSCRIPT_SUPER | The Constant SUPERSCRIPT_SUPER indicates a standard superscript. | ||||||||||
SWAP_COLORS | The SWAP_COLORS text attribute. | ||||||||||
SWAP_COLORS_ON | The Constant SWAP_COLORS_ON indicates a swap of foreground and background. | ||||||||||
TRACKING | The TRACKING text attribute key. | ||||||||||
TRACKING_LOOSE | |||||||||||
TRACKING_TIGHT | |||||||||||
TRANSFORM | The TRANSFORM text attribute. | ||||||||||
UNDERLINE | The Constant UNDERLINE text attribute. | ||||||||||
UNDERLINE_LOW_DASHED | The Constant UNDERLINE_LOW_DASHED indicates single pixel dashed low underline. | ||||||||||
UNDERLINE_LOW_DOTTED | The Constant UNDERLINE_LOW_DOTTED indicates a single pixel dotted low underline. | ||||||||||
UNDERLINE_LOW_GRAY | The Constant UNDERLINE_LOW_GRAY indicates double pixel gray low underline. | ||||||||||
UNDERLINE_LOW_ONE_PIXEL | The Constant UNDERLINE_LOW_ONE_PIXEL indicates a single pixel solid low underline. | ||||||||||
UNDERLINE_LOW_TWO_PIXEL | The Constant UNDERLINE_LOW_TWO_PIXEL indicates a double pixel solid low underline. | ||||||||||
UNDERLINE_ON | The Constant UNDERLINE_ON indicates a standard underline at the roman baseline for roman text. | ||||||||||
WEIGHT | The WEIGHT text attribute. | ||||||||||
WEIGHT_BOLD | The Constant WEIGHT_BOLD indicates the standard bold weight. | ||||||||||
WEIGHT_DEMIBOLD | The Constant WEIGHT_DEMIBOLD indicates a lighter weight than BOLD. | ||||||||||
WEIGHT_DEMILIGHT | The Constant WEIGHT_DEMILIGHT indicates an intermediate weight between LIGHT and STANDARD. | ||||||||||
WEIGHT_EXTRABOLD | The Constant WEIGHT_EXTRABOLD indicates an extra heavy weight. | ||||||||||
WEIGHT_EXTRA_LIGHT | The Constant WEIGHT_EXTRA_LIGHT indicates the lightest predefined weight. | ||||||||||
WEIGHT_HEAVY | The Constant WEIGHT_HEAVY indicates a heavier weight than BOLD. | ||||||||||
WEIGHT_LIGHT | The Constant WEIGHT_LIGHT indicates the standard light weight. | ||||||||||
WEIGHT_MEDIUM | The Constant WEIGHT_MEDIUM indicates average weight between the REGULAR and BOLD. | ||||||||||
WEIGHT_REGULAR | The Constant WEIGHT_REGULAR indicates the standart weight. | ||||||||||
WEIGHT_SEMIBOLD | The Constant WEIGHT_SEMIBOLD indicates a semi weight of REGULAR. | ||||||||||
WEIGHT_ULTRABOLD | The Constant WEIGHT_ULTRABOLD indicates the heaviest predefined weight. | ||||||||||
WIDTH | The WIDTH text attribute. | ||||||||||
WIDTH_CONDENSED | The Constant WIDTH_CONDENSED indicates the most condensed predefined width. | ||||||||||
WIDTH_EXTENDED | The Constant WIDTH_EXTENDED indicates extended width. | ||||||||||
WIDTH_REGULAR | The Constant WIDTH_REGULAR indicates the standard width. | ||||||||||
WIDTH_SEMI_CONDENSED | The Constant WIDTH_SEMI_CONDENSED indicates a semi condensed width. | ||||||||||
WIDTH_SEMI_EXTENDED | The Constant WIDTH_SEMI_EXTENDED indicates semi extended width. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.text.AttributedCharacterIterator.Attribute
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiates a new TextAttribute with the specified name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.text.AttributedCharacterIterator.Attribute
| |||||||||||
From class
java.lang.Object
|
The BIDI_EMBEDDING text attribute key.
The CHAR_REPLACEMENT text attribute key.
The INPUT_METHOD_HIGHLIGHT text attribute key.
The INPUT_METHOD_UNDERLINE text attribute key.
The JUSTIFICATION text attribute key.
The Constant JUSTIFICATION_indicates the full requested width.
The Constant JUSTIFICATION_NONE indicates that line is not allowed for justification.
The NUMERIC_SHAPING text attribute.
The Constant POSTURE_OBLIQUE indicates italic posture.
The Constant POSTURE_REGULAR indicates regular posture.
The RUN_DIRECTION text attribute.
The Constant RUN_DIRECTION_LTR indicates left-to-right run direction.
The Constant RUN_DIRECTION_RTL indicates right-to-left run direction.
The STRIKETHROUGH text attribute.
The Constant STRIKETHROUGH_ON indicates a single strikethrough.
The Constant SUPERSCRIPT_SUB indicates a standard subscript.
The Constant SUPERSCRIPT_SUPER indicates a standard superscript.
The Constant SWAP_COLORS_ON indicates a swap of foreground and background.
The Constant UNDERLINE text attribute.
The Constant UNDERLINE_LOW_DASHED indicates single pixel dashed low underline.
The Constant UNDERLINE_LOW_DOTTED indicates a single pixel dotted low underline.
The Constant UNDERLINE_LOW_GRAY indicates double pixel gray low underline.
The Constant UNDERLINE_LOW_ONE_PIXEL indicates a single pixel solid low underline.
The Constant UNDERLINE_LOW_TWO_PIXEL indicates a double pixel solid low underline.
The Constant UNDERLINE_ON indicates a standard underline at the roman baseline for roman text.
The Constant WEIGHT_BOLD indicates the standard bold weight.
The Constant WEIGHT_DEMIBOLD indicates a lighter weight than BOLD.
The Constant WEIGHT_DEMILIGHT indicates an intermediate weight between LIGHT and STANDARD.
The Constant WEIGHT_EXTRABOLD indicates an extra heavy weight.
The Constant WEIGHT_EXTRA_LIGHT indicates the lightest predefined weight.
The Constant WEIGHT_HEAVY indicates a heavier weight than BOLD.
The Constant WEIGHT_LIGHT indicates the standard light weight.
The Constant WEIGHT_MEDIUM indicates average weight between the REGULAR and BOLD.
The Constant WEIGHT_REGULAR indicates the standart weight.
The Constant WEIGHT_SEMIBOLD indicates a semi weight of REGULAR.
The Constant WEIGHT_ULTRABOLD indicates the heaviest predefined weight.
The Constant WIDTH_CONDENSED indicates the most condensed predefined width.
The Constant WIDTH_EXTENDED indicates extended width.
The Constant WIDTH_REGULAR indicates the standard width.
The Constant WIDTH_SEMI_CONDENSED indicates a semi condensed width.
The Constant WIDTH_SEMI_EXTENDED indicates semi extended width.
Instantiates a new TextAttribute with the specified name.
name | the name of TextAttribute. |
---|