Method Summary |
|
public Object | clone() |
public char | current() Gets the character at the current position (as returned by getIndex()). |
public char | first() Sets the position to getBeginIndex() and returns the character at that
position. |
public Set | getAllAttributeKeys() Returns the keys of all attributes defined on the
iterator's text range. |
public Object | getAttribute(Object attribute) Returns the value of the named attribute for the current character. |
public Object | getAttribute(Attribute attribute) Returns the value of the named attribute for the current character. |
public Map | getAttributes() Returns a map with the attributes defined on the current
character. |
public int | getBeginIndex() Returns the start index of the text. |
public int | getEndIndex() Returns the end index of the text. |
public int | getIndex() Returns the current index. |
public int | getRunLimit() Returns the index of the first character following the run
with respect to all attributes containing the current character. |
public int | getRunLimit(Object attribute) Returns the index of the first character following the run
with respect to the given attribute containing the current character. |
public int | getRunLimit(Attribute attribute) Returns the index of the first character following the run
with respect to the given attribute containing the current character. |
public int | getRunLimit(Set attributes) Returns the index of the first character following the run
with respect to the given attributes containing the current character. |
public int | getRunStart() Returns the index of the first character of the run
with respect to all attributes containing the current character. |
public int | getRunStart(Object attribute) Returns the index of the first character of the run
with respect to the given attribute containing the current character. |
public int | getRunStart(Attribute attribute) Returns the index of the first character of the run
with respect to the given attribute containing the current character. |
public int | getRunStart(Set attributes) Returns the index of the first character of the run
with respect to the given attributes containing the current character. |
public char | last() Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty)
and returns the character at that position. |
public char | next() Increments the iterator's index by one and returns the character
at the new index. |
public char | previous() Decrements the iterator's index by one and returns the character
at the new index. |
public char | setIndex(int position) Sets the position to the specified position in the text and returns that
character.
Parameters: position - the position within the text. |