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 readResolve ( ) throws java.io.InvalidObjectException; } SubclassesFormat.Field Passed ToAttributedCharacterIterator.{getAttribute( ) , getrunLimit( ) , getrunStart( )} , AttributedString.{addAttribute( ) , AttributedString( ) , getIterator( )} |