|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.text.AttributedCharacterIterator.Attribute
java.awt.font.TextAttribute
public final class TextAttribute
Attributes (and associated values) that can be used to define an
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 Float |
JUSTIFICATION_FULL
A value that can be used with the JUSTIFICATION attribute to
indicate full justification of the text. |
static Float |
JUSTIFICATION_NONE
A value that can be used with the JUSTIFICATION 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 Float |
POSTURE_OBLIQUE
A value that can be used with the POSTURE attribute. |
static Float |
POSTURE_REGULAR
A value that can be used with the POSTURE attribute. |
static TextAttribute |
RUN_DIRECTION
A key for the RUN_DIRECTION attribute. |
static Boolean |
RUN_DIRECTION_LTR
A value that can be used with the RUN_DIRECTION attribute. |
static Boolean |
RUN_DIRECTION_RTL
A value that can be used with the RUN_DIRECTION attribute. |
static TextAttribute |
SIZE
A key for the text size attribute. |
static TextAttribute |
STRIKETHROUGH
A key for the STRIKETHROUGH attribute. |
static Boolean |
STRIKETHROUGH_ON
A value that can be used with the STRIKETHROUGH attribute. |
static TextAttribute |
SUPERSCRIPT
A key for the SUPERSCRIPT attribute. |
static Integer |
SUPERSCRIPT_SUB
A value that can be used with the SUPERSCRIPT attribute. |
static Integer |
SUPERSCRIPT_SUPER
A value that can be used with the SUPERSCRIPT attribute. |
static TextAttribute |
SWAP_COLORS
A key for the SWAP_COLORS attribute. |
static Boolean |
SWAP_COLORS_ON
A value that can be used with the SWAP_COLORS attribute. |
static TextAttribute |
TRANSFORM
A key for the TRANFORM attribute. |
static TextAttribute |
UNDERLINE
A key for the UNDERLINE attribute. |
static Integer |
UNDERLINE_LOW_DASHED
A value that can be used with the UNDERLINE attribute. |
static Integer |
UNDERLINE_LOW_DOTTED
A value that can be used with the UNDERLINE attribute. |
static Integer |
UNDERLINE_LOW_GRAY
A value that can be used with the UNDERLINE attribute. |
static Integer |
UNDERLINE_LOW_ONE_PIXEL
A value that can be used with the UNDERLINE attribute. |
static Integer |
UNDERLINE_LOW_TWO_PIXEL
A value that can be used with the UNDERLINE attribute. |
static Integer |
UNDERLINE_ON
A value that can be used with the UNDERLINE attribute. |
static TextAttribute |
WEIGHT
A key for the WEIGHT attribute. |
static Float |
WEIGHT_BOLD
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_DEMIBOLD
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_DEMILIGHT
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_EXTRA_LIGHT
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_EXTRABOLD
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_HEAVY
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_LIGHT
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_MEDIUM
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_REGULAR
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_SEMIBOLD
A value that can be used with the WEIGHT attribute. |
static Float |
WEIGHT_ULTRABOLD
A value that can be used with the WEIGHT attribute. |
static TextAttribute |
WIDTH
A key for the WIDTH attribute. |
static Float |
WIDTH_CONDENSED
A value that can be used with the WIDTH attribute. |
static Float |
WIDTH_EXTENDED
A value that can be used with the WIDTH attribute. |
static Float |
WIDTH_REGULAR
A value that can be used with the WIDTH attribute. |
static Float |
WIDTH_SEMI_CONDENSED
A value that can be used with the WIDTH attribute. |
static Float |
WIDTH_SEMI_EXTENDED
A value that can be used with the WIDTH attribute. |
| Fields inherited from class java.text.AttributedCharacterIterator.Attribute |
|---|
INPUT_METHOD_SEGMENT, LANGUAGE, READING |
| Constructor Summary | |
|---|---|
protected |
TextAttribute(String name)
Creates a new attribute. |
| Method Summary | |
|---|---|
protected 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 |
|---|
public static final TextAttribute BACKGROUND
public static final TextAttribute BIDI_EMBEDDING
public static final TextAttribute CHAR_REPLACEMENT
public static final TextAttribute FAMILY
public static final TextAttribute FONT
public static final TextAttribute FOREGROUND
public static final TextAttribute INPUT_METHOD_HIGHLIGHT
public static final TextAttribute INPUT_METHOD_UNDERLINE
public static final TextAttribute JUSTIFICATION
public static final Float JUSTIFICATION_FULL
JUSTIFICATION attribute to
indicate full justification of the text.
public static final Float JUSTIFICATION_NONE
JUSTIFICATION attribute to
indicate no justification of the text.
public static final TextAttribute NUMERIC_SHAPING
public static final TextAttribute POSTURE
public static final Float POSTURE_OBLIQUE
POSTURE attribute.
public static final Float POSTURE_REGULAR
POSTURE attribute.
public static final TextAttribute RUN_DIRECTION
public static final Boolean RUN_DIRECTION_LTR
RUN_DIRECTION attribute.
public static final Boolean RUN_DIRECTION_RTL
RUN_DIRECTION attribute.
public static final TextAttribute SIZE
public static final TextAttribute STRIKETHROUGH
public static final Boolean STRIKETHROUGH_ON
STRIKETHROUGH attribute.
public static final TextAttribute SUPERSCRIPT
public static final Integer SUPERSCRIPT_SUB
SUPERSCRIPT attribute.
public static final Integer SUPERSCRIPT_SUPER
SUPERSCRIPT attribute.
public static final TextAttribute SWAP_COLORS
public static final Boolean SWAP_COLORS_ON
SWAP_COLORS attribute.
public static final TextAttribute TRANSFORM
public static final TextAttribute UNDERLINE
public static final Integer UNDERLINE_LOW_DASHED
UNDERLINE attribute.
public static final Integer UNDERLINE_LOW_DOTTED
UNDERLINE attribute.
public static final Integer UNDERLINE_LOW_GRAY
UNDERLINE attribute.
public static final Integer UNDERLINE_LOW_ONE_PIXEL
UNDERLINE attribute.
public static final Integer UNDERLINE_LOW_TWO_PIXEL
UNDERLINE attribute.
public static final Integer UNDERLINE_ON
UNDERLINE attribute.
public static final TextAttribute WEIGHT
public static final Float WEIGHT_BOLD
WEIGHT attribute.
public static final Float WEIGHT_DEMIBOLD
WEIGHT attribute.
public static final Float WEIGHT_DEMILIGHT
WEIGHT attribute.
public static final Float WEIGHT_EXTRA_LIGHT
WEIGHT attribute.
public static final Float WEIGHT_EXTRABOLD
WEIGHT attribute.
public static final Float WEIGHT_HEAVY
WEIGHT attribute.
public static final Float WEIGHT_LIGHT
WEIGHT attribute.
public static final Float WEIGHT_MEDIUM
WEIGHT attribute.
public static final Float WEIGHT_REGULAR
WEIGHT attribute.
public static final Float WEIGHT_SEMIBOLD
WEIGHT attribute.
public static final Float WEIGHT_ULTRABOLD
WEIGHT attribute.
public static final TextAttribute WIDTH
public static final Float WIDTH_CONDENSED
WIDTH attribute.
public static final Float WIDTH_EXTENDED
WIDTH attribute.
public static final Float WIDTH_REGULAR
WIDTH attribute.
public static final Float WIDTH_SEMI_CONDENSED
WIDTH attribute.
public static final Float WIDTH_SEMI_EXTENDED
WIDTH attribute.
| Constructor Detail |
|---|
protected TextAttribute(String name)
name - the name.| Method Detail |
|---|
protected Object readResolve()
throws InvalidObjectException
readResolve in class AttributedCharacterIterator.AttributeInvalidObjectException - if the attribute is not recognised.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||