Name
AttributedCharacterIterator.Attribute
Synopsis
This class
defines the types of the attribute keys used with
AttributedCharacterIterator
and
AttributedString
. It defines several constant
Attribute
keys that are commonly used with
multilingual text and input methods. The LANGUAGE
key represents the language of the underlying text. The value of this
key should be a Locale
object. The
READING
key represents arbitrary reading
information associated with text. The value must be an
Annotation
object. The
INPUT_METHOD_SEGMENT
key serves to define text
segments (usually words) that an input method operates on. The value
of this attribute should be an Annotation
object
that contains null
. Other classes may subclass
this class and define other attribute keys that are useful in other
circumstances or problem domains. See, for example,
java.awt.font.TextAttribute
in Java
Foundation Classes in a Nutshell
(O’Reilly).
public static class AttributedCharacterIterator.Attribute implements Serializable { // Protected Constructors protected Attribute(String name); // Public Constants public static final AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT; public static final AttributedCharacterIterator.Attribute LANGUAGE; public static final AttributedCharacterIterator.Attribute READING; // Public Methods Overriding Object public final boolean equals(Object obj); public final int hashCode( ); public String toString( ); // Protected Instance Methods protected String getName( ); protected Object ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.