Uses of Class
java.text.AttributedCharacterIterator.Attribute
| Package | Description |
|---|---|
| java.awt.font | |
| java.text |
-
Uses of AttributedCharacterIterator.Attribute in java.awt.font
Subclasses of AttributedCharacterIterator.Attribute in java.awt.font Modifier and Type Class Description classTextAttributeThe TextAttribute class defines attribute keys and attribute values for text rendering. -
Uses of AttributedCharacterIterator.Attribute in java.text
Subclasses of AttributedCharacterIterator.Attribute in java.text Modifier and Type Class Description static classDateFormat.FieldThe instances of this inner class are used as attribute keys and values inAttributedCharacterIteratorthat theSimpleDateFormat.formatToCharacterIterator(Object)method returns.static classFormat.FieldInner class used to representFormatattributes in theAttributedCharacterIteratorthat theformatToCharacterIterator()method returns inFormatsubclasses.static classMessageFormat.FieldThe instances of this inner class are used as attribute keys inAttributedCharacterIteratorthat theMessageFormat.formatToCharacterIterator(Object)method returns.static classNumberFormat.FieldThe instances of this inner class are used as attribute keys and values inAttributedCharacterIteratorthat theFormat.formatToCharacterIterator(Object)method returns.Fields in java.text declared as AttributedCharacterIterator.Attribute Modifier and Type Field Description static AttributedCharacterIterator.AttributeAttributedCharacterIterator.Attribute. INPUT_METHOD_SEGMENTThis attribute marks segments from an input method.static AttributedCharacterIterator.AttributeAttributedCharacterIterator.Attribute. LANGUAGEThe attribute describing the language of a character.static AttributedCharacterIterator.AttributeAttributedCharacterIterator.Attribute. READINGFor languages that have different reading directions of text (like Japanese), this attribute allows to define which reading should be used.Methods in java.text that return types with arguments of type AttributedCharacterIterator.Attribute Modifier and Type Method Description Set<AttributedCharacterIterator.Attribute>AttributedCharacterIterator. getAllAttributeKeys()Returns a set of attributes present in theAttributedCharacterIterator.Map<AttributedCharacterIterator.Attribute,Object>AttributedCharacterIterator. getAttributes()Returns a map of all attributes of the current character.Methods in java.text with parameters of type AttributedCharacterIterator.Attribute Modifier and Type Method Description voidAttributedString. addAttribute(AttributedCharacterIterator.Attribute attribute, Object value)Applies a given attribute to this string.voidAttributedString. addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int start, int end)Applies a given attribute to the given range of this string.ObjectAttributedCharacterIterator. getAttribute(AttributedCharacterIterator.Attribute attribute)Returns the value stored in the attribute for the current character.AttributedCharacterIteratorAttributedString. getIterator(AttributedCharacterIterator.Attribute[] attributes)Returns anAttributedCharacterIteratorthat gives access to the complete content of this attributed string.AttributedCharacterIteratorAttributedString. getIterator(AttributedCharacterIterator.Attribute[] attributes, int start, int end)Returns anAttributedCharacterIteratorthat gives access to the contents of this attributed string starting at indexstartup to indexend.intAttributedCharacterIterator. getRunLimit(AttributedCharacterIterator.Attribute attribute)Returns the index of the last character in the run that has the same attribute value for the given attribute as the current character.intAttributedCharacterIterator. getRunStart(AttributedCharacterIterator.Attribute attribute)Returns the index of the first character in the run that has the same attribute value for the given attribute as the current character.Method parameters in java.text with type arguments of type AttributedCharacterIterator.Attribute Modifier and Type Method Description voidAttributedString. addAttributes(Map<? extends AttributedCharacterIterator.Attribute,?> attributes, int start, int end)Applies a given set of attributes to the given range of the string.intAttributedCharacterIterator. getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)Returns the index of the last character in the run that has the same attribute values for the attributes in the set as the current character.intAttributedCharacterIterator. getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)Returns the index of the first character in the run that has the same attribute values for the attributes in the set as the current character.Constructors in java.text with parameters of type AttributedCharacterIterator.Attribute Constructor Description AttributedString(AttributedCharacterIterator iterator, int start, int end, AttributedCharacterIterator.Attribute[] attributes)Constructs anAttributedStringfrom a range of the text contained in the specifiedAttributedCharacterIterator, starting atstart, ending atendand it will copy the attributes defined in the specified set.Constructor parameters in java.text with type arguments of type AttributedCharacterIterator.Attribute Constructor Description AttributedString(String value, Map<? extends AttributedCharacterIterator.Attribute,?> attributes)Creates anAttributedStringfrom the given text and the attributes.