Example usage for Java java.text AttributedString fields, constructors, methods, implement or subclass
The text is from its open source code.
AttributedString(AttributedCharacterIterator[] iterators) Constructs an AttributedString instance with the given AttributedCharacterIterators. | |
AttributedString(String text) Constructs an AttributedString instance with the given text. | |
AttributedString(AttributedCharacterIterator text) Constructs an AttributedString instance with the given attributed text represented by AttributedCharacterIterator. | |
AttributedString(String text, Map extends Attribute, ?> attributes) Constructs an AttributedString instance with the given text and attributes. | |
AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex) Constructs an AttributedString instance with the subrange of the given attributed text represented by AttributedCharacterIterator. |
void | addAttribute(Attribute attribute, Object value) Adds an attribute to the entire string. |
void | addAttribute(Attribute attribute, Object value, int beginIndex, int endIndex) Adds an attribute to a subrange of the string. |
void | addAttributes(Map extends Attribute, ?> attributes, int beginIndex, int endIndex) Adds a set of attributes to a subrange of the string. |
AttributedCharacterIterator | getIterator() Creates an AttributedCharacterIterator instance that provides access to the entire contents of this string. |