java.text.AttributedCharacterIterator |
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 Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AttributedCharacterIterator.Attribute | Defines keys for text attributes. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.text.CharacterIterator
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a set of attributes present in the
AttributedCharacterIterator .
| |||||||||||
Returns the value stored in the attribute for the current character.
| |||||||||||
Returns a map of all attributes of the current character.
| |||||||||||
Returns the index of the last character in the run that has the same
attribute value for the given attribute as the current character.
| |||||||||||
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.
| |||||||||||
Returns the index of the last character in the run having the same
attributes as the current character.
| |||||||||||
Returns the index of the first character in the run that has the same
attributes as the current character.
| |||||||||||
Returns the index of the first character in the run that has the same
attribute value for the given attribute as the current character.
| |||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.text.CharacterIterator
|
Returns a set of attributes present in the AttributedCharacterIterator
. An empty set is returned if no attributes
were defined.
Returns the value stored in the attribute for the current character. If
the attribute was not defined then null
is returned.
attribute | the attribute for which the value should be returned. |
---|
null
if it was not defined.
Returns a map of all attributes of the current character. If no attributes were defined for the current character then an empty map is returned.
Returns the index of the last character in the run that has the same attribute value for the given attribute as the current character.
attribute | the attribute which the run is based on. |
---|
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.
attributes | the set of attributes which the run is based on. |
---|
Returns the index of the last character in the run having the same attributes as the current character.
Returns the index of the first character in the run that has the same attributes as the current character.
Returns the index of the first character in the run that has the same attribute value for the given attribute as the current character.
attribute | the attribute which the run is based on. |
---|
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.
attributes | the set of attributes which the run is based on. |
---|