|
|||||||||
| Home >> All >> java >> awt >> [ font overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt.font
Class TextAttribute

java.lang.Objectjava.text.AttributedCharacterIterator.Attribute
java.awt.font.TextAttribute
- All Implemented Interfaces:
- java.io.Serializable
- public final class TextAttribute
- extends java.text.AttributedCharacterIterator.Attribute
Attributes (and associated values) that can be used to define an java.text.AttributedString.
| Field Summary | |
static TextAttribute |
BACKGROUND
A key for the background paint attribute. |
static TextAttribute |
BIDI_EMBEDDING
A key for the BIDI_EMBEDDING attribute. |
static TextAttribute |
CHAR_REPLACEMENT
A key for the CHAR_REPLACEMENT attribute. |
static TextAttribute |
FAMILY
A key for the FAMILY attribute. |
static TextAttribute |
FONT
A key for the font attribute. |
static TextAttribute |
FOREGROUND
A key for the foreground paint attribute. |
static TextAttribute |
INPUT_METHOD_HIGHLIGHT
A key for the INPUT_METHOD_HIGHLIGHT attribute. |
static TextAttribute |
INPUT_METHOD_UNDERLINE
A key for the INPUT_METHOD_UNDERLINE attribute. |
static TextAttribute |
JUSTIFICATION
A key for the text justification attribute. |
static java.lang.Float |
JUSTIFICATION_FULL
A value that can be used with the JUSTIFICATION 55 attribute to
indicate full justification of the text. |
static java.lang.Float |
JUSTIFICATION_NONE
A value that can be used with the JUSTIFICATION 55 attribute to
indicate no justification of the text. |
static TextAttribute |
NUMERIC_SHAPING
A key for the NUMERIC_SHAPING attribute. |
static TextAttribute |
POSTURE
A key for the POSTURE attribute. |
static java.lang.Float |
POSTURE_OBLIQUE
A value that can be used with the POSTURE 55 attribute. |
static java.lang.Float |
POSTURE_REGULAR
A value that can be used with the POSTURE 55 attribute. |
static TextAttribute |
RUN_DIRECTION
A key for the RUN_DIRECTION attribute. |
static java.lang.Boolean |
RUN_DIRECTION_LTR
A value that can be used with the RUN_DIRECTION 55 attribute. |
static java.lang.Boolean |
RUN_DIRECTION_RTL
A value that can be used with the RUN_DIRECTION 55 attribute. |
private static long |
serialVersionUID
|
static TextAttribute |
SIZE
A key for the text size attribute. |
static TextAttribute |
STRIKETHROUGH
A key for the STRIKETHROUGH attribute. |
static java.lang.Boolean |
STRIKETHROUGH_ON
A value that can be used with the STRIKETHROUGH 55 attribute. |
static TextAttribute |
SUPERSCRIPT
A key for the SUPERSCRIPT attribute. |
static java.lang.Integer |
SUPERSCRIPT_SUB
A value that can be used with the SUPERSCRIPT 55 attribute. |
static java.lang.Integer |
SUPERSCRIPT_SUPER
A value that can be used with the SUPERSCRIPT 55 attribute. |
static TextAttribute |
SWAP_COLORS
A key for the SWAP_COLORS attribute. |
static java.lang.Boolean |
SWAP_COLORS_ON
A value that can be used with the SWAP_COLORS 55 attribute. |
static TextAttribute |
TRANSFORM
A key for the TRANFORM attribute. |
static TextAttribute |
UNDERLINE
A key for the UNDERLINE attribute. |
static java.lang.Integer |
UNDERLINE_LOW_DASHED
A value that can be used with the UNDERLINE 55 attribute. |
static java.lang.Integer |
UNDERLINE_LOW_DOTTED
A value that can be used with the UNDERLINE 55 attribute. |
static java.lang.Integer |
UNDERLINE_LOW_GRAY
A value that can be used with the UNDERLINE 55 attribute. |
static java.lang.Integer |
UNDERLINE_LOW_ONE_PIXEL
A value that can be used with the UNDERLINE 55 attribute. |
static java.lang.Integer |
UNDERLINE_LOW_TWO_PIXEL
A value that can be used with the UNDERLINE 55 attribute. |
static java.lang.Integer |
UNDERLINE_ON
A value that can be used with the UNDERLINE 55 attribute. |
static TextAttribute |
WEIGHT
A key for the WEIGHT attribute. |
static java.lang.Float |
WEIGHT_BOLD
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_DEMIBOLD
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_DEMILIGHT
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_EXTRA_LIGHT
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_EXTRABOLD
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_HEAVY
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_LIGHT
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_MEDIUM
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_REGULAR
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_SEMIBOLD
A value that can be used with the WEIGHT 55 attribute. |
static java.lang.Float |
WEIGHT_ULTRABOLD
A value that can be used with the WEIGHT 55 attribute. |
static TextAttribute |
WIDTH
A key for the WIDTH attribute. |
static java.lang.Float |
WIDTH_CONDENSED
A value that can be used with the WIDTH 55 attribute. |
static java.lang.Float |
WIDTH_EXTENDED
A value that can be used with the WIDTH 55 attribute. |
static java.lang.Float |
WIDTH_REGULAR
A value that can be used with the WIDTH 55 attribute. |
static java.lang.Float |
WIDTH_SEMI_CONDENSED
A value that can be used with the WIDTH 55 attribute. |
static java.lang.Float |
WIDTH_SEMI_EXTENDED
A value that can be used with the WIDTH 55 attribute. |
| Fields inherited from class java.text.AttributedCharacterIterator.Attribute |
INPUT_METHOD_SEGMENT, LANGUAGE, READING |
| Constructor Summary | |
protected |
TextAttribute(java.lang.String name)
Creates a new attribute. |
| Method Summary | |
protected java.lang.Object |
readResolve()
After deserialization, this method ensures that only one instance of each attribute is used. |
| Methods inherited from class java.text.AttributedCharacterIterator.Attribute |
equals, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
BACKGROUND
public static final TextAttribute BACKGROUND
- A key for the background paint attribute.
BIDI_EMBEDDING
public static final TextAttribute BIDI_EMBEDDING
- A key for the BIDI_EMBEDDING attribute.
CHAR_REPLACEMENT
public static final TextAttribute CHAR_REPLACEMENT
- A key for the CHAR_REPLACEMENT attribute.
FAMILY
public static final TextAttribute FAMILY
- A key for the FAMILY attribute.
FONT
public static final TextAttribute FONT
- A key for the font attribute.
FOREGROUND
public static final TextAttribute FOREGROUND
- A key for the foreground paint attribute.
INPUT_METHOD_HIGHLIGHT
public static final TextAttribute INPUT_METHOD_HIGHLIGHT
- A key for the INPUT_METHOD_HIGHLIGHT attribute.
INPUT_METHOD_UNDERLINE
public static final TextAttribute INPUT_METHOD_UNDERLINE
- A key for the INPUT_METHOD_UNDERLINE attribute.
JUSTIFICATION
public static final TextAttribute JUSTIFICATION
- A key for the text justification attribute.
JUSTIFICATION_FULL
public static final java.lang.Float JUSTIFICATION_FULL
- A value that can be used with the
JUSTIFICATION55 attribute to indicate full justification of the text.
JUSTIFICATION_NONE
public static final java.lang.Float JUSTIFICATION_NONE
- A value that can be used with the
JUSTIFICATION55 attribute to indicate no justification of the text.
NUMERIC_SHAPING
public static final TextAttribute NUMERIC_SHAPING
- A key for the NUMERIC_SHAPING attribute.
POSTURE
public static final TextAttribute POSTURE
- A key for the POSTURE attribute.
POSTURE_OBLIQUE
public static final java.lang.Float POSTURE_OBLIQUE
- A value that can be used with the
POSTURE55 attribute.
POSTURE_REGULAR
public static final java.lang.Float POSTURE_REGULAR
- A value that can be used with the
POSTURE55 attribute.
RUN_DIRECTION
public static final TextAttribute RUN_DIRECTION
- A key for the RUN_DIRECTION attribute.
RUN_DIRECTION_LTR
public static final java.lang.Boolean RUN_DIRECTION_LTR
- A value that can be used with the
RUN_DIRECTION55 attribute.
RUN_DIRECTION_RTL
public static final java.lang.Boolean RUN_DIRECTION_RTL
- A value that can be used with the
RUN_DIRECTION55 attribute.
SIZE
public static final TextAttribute SIZE
- A key for the text size attribute.
STRIKETHROUGH
public static final TextAttribute STRIKETHROUGH
- A key for the STRIKETHROUGH attribute.
STRIKETHROUGH_ON
public static final java.lang.Boolean STRIKETHROUGH_ON
- A value that can be used with the
STRIKETHROUGH55 attribute.
SUPERSCRIPT
public static final TextAttribute SUPERSCRIPT
- A key for the SUPERSCRIPT attribute.
SUPERSCRIPT_SUB
public static final java.lang.Integer SUPERSCRIPT_SUB
- A value that can be used with the
SUPERSCRIPT55 attribute.
SUPERSCRIPT_SUPER
public static final java.lang.Integer SUPERSCRIPT_SUPER
- A value that can be used with the
SUPERSCRIPT55 attribute.
SWAP_COLORS
public static final TextAttribute SWAP_COLORS
- A key for the SWAP_COLORS attribute.
SWAP_COLORS_ON
public static final java.lang.Boolean SWAP_COLORS_ON
- A value that can be used with the
SWAP_COLORS55 attribute.
TRANSFORM
public static final TextAttribute TRANSFORM
- A key for the TRANFORM attribute.
UNDERLINE
public static final TextAttribute UNDERLINE
- A key for the UNDERLINE attribute.
UNDERLINE_LOW_DASHED
public static final java.lang.Integer UNDERLINE_LOW_DASHED
- A value that can be used with the
UNDERLINE55 attribute.
UNDERLINE_LOW_DOTTED
public static final java.lang.Integer UNDERLINE_LOW_DOTTED
- A value that can be used with the
UNDERLINE55 attribute.
UNDERLINE_LOW_GRAY
public static final java.lang.Integer UNDERLINE_LOW_GRAY
- A value that can be used with the
UNDERLINE55 attribute.
UNDERLINE_LOW_ONE_PIXEL
public static final java.lang.Integer UNDERLINE_LOW_ONE_PIXEL
- A value that can be used with the
UNDERLINE55 attribute.
UNDERLINE_LOW_TWO_PIXEL
public static final java.lang.Integer UNDERLINE_LOW_TWO_PIXEL
- A value that can be used with the
UNDERLINE55 attribute.
UNDERLINE_ON
public static final java.lang.Integer UNDERLINE_ON
- A value that can be used with the
UNDERLINE55 attribute.
WEIGHT
public static final TextAttribute WEIGHT
- A key for the WEIGHT attribute.
WEIGHT_BOLD
public static final java.lang.Float WEIGHT_BOLD
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_DEMIBOLD
public static final java.lang.Float WEIGHT_DEMIBOLD
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_DEMILIGHT
public static final java.lang.Float WEIGHT_DEMILIGHT
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_EXTRA_LIGHT
public static final java.lang.Float WEIGHT_EXTRA_LIGHT
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_EXTRABOLD
public static final java.lang.Float WEIGHT_EXTRABOLD
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_HEAVY
public static final java.lang.Float WEIGHT_HEAVY
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_LIGHT
public static final java.lang.Float WEIGHT_LIGHT
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_MEDIUM
public static final java.lang.Float WEIGHT_MEDIUM
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_REGULAR
public static final java.lang.Float WEIGHT_REGULAR
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_SEMIBOLD
public static final java.lang.Float WEIGHT_SEMIBOLD
- A value that can be used with the
WEIGHT55 attribute.
WEIGHT_ULTRABOLD
public static final java.lang.Float WEIGHT_ULTRABOLD
- A value that can be used with the
WEIGHT55 attribute.
WIDTH
public static final TextAttribute WIDTH
- A key for the WIDTH attribute.
WIDTH_CONDENSED
public static final java.lang.Float WIDTH_CONDENSED
- A value that can be used with the
WIDTH55 attribute.
WIDTH_EXTENDED
public static final java.lang.Float WIDTH_EXTENDED
- A value that can be used with the
WIDTH55 attribute.
WIDTH_REGULAR
public static final java.lang.Float WIDTH_REGULAR
- A value that can be used with the
WIDTH55 attribute.
WIDTH_SEMI_CONDENSED
public static final java.lang.Float WIDTH_SEMI_CONDENSED
- A value that can be used with the
WIDTH55 attribute.
WIDTH_SEMI_EXTENDED
public static final java.lang.Float WIDTH_SEMI_EXTENDED
- A value that can be used with the
WIDTH55 attribute.
| Constructor Detail |
TextAttribute
protected TextAttribute(java.lang.String name)
- Creates a new attribute.
| Method Detail |
readResolve
protected java.lang.Object readResolve() throws java.io.InvalidObjectException
- After deserialization, this method ensures that only one instance of
each attribute is used.
|
|||||||||
| Home >> All >> java >> awt >> [ font overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.text.AttributedCharacterIterator.Attribute