AttributedCharacterIterator

public interface AttributedCharacterIterator implements CharacterIterator

Extends the CharacterIterator interface, adding support for iterating over attributes and not only characters. An AttributedCharacterIterator also allows the user to find runs and their limits. Runs are defined as ranges of characters that all have the same attributes with the same values.

Nested Class Summary

class AttributedCharacterIterator.Attribute Defines keys for text attributes. 

Inherited Constant Summary

Public Method Summary

abstract Set<AttributedCharacterIterator.Attribute>
getAllAttributeKeys()
Returns a set of attributes present in the AttributedCharacterIterator.
abstract Object
getAttribute(AttributedCharacterIterator.Attribute attribute)
Returns the value stored in the attribute for the current character.
abstract Map<AttributedCharacterIterator.AttributeObject>
getAttributes()
Returns a map of all attributes of the current character.
abstract int
getRunLimit()
Returns the index of the last character in the run having the same attributes as the current character.
abstract int
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.
abstract