Method Summary |
|
public Object | clone() |
public char | current() Get the character at the current position (as returned
by getIndex()). |
public char | first() Sets the position to getBeginIndex(). |
public Set | getAllAttributeKeys() Get the keys of all attributes defined on the iterator's text range. |
public Object | getAttribute(AttributedCharacterIterator.Attribute attribute) Get 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() Get the start index of the text. |
public int | getEndIndex() Get the end index of the text. |
public int | getIndex() Get the current index. |
public int | getRunLimit() Get the index of the first character following the
run with respect to all attributes containing the current
character. |
public int | getRunLimit(AttributedCharacterIterator.Attribute attribute) Get the index of the first character following the
run with respect to the given attribute containing the current
character. |
public int | getRunLimit(Set attributes) Get the index of the first character following the
run with respect to the given attributes containing the current
character. |
public int | getRunStart() Get the index of the first character of the run with
respect to all attributes containing the current character. |
public int | getRunStart(AttributedCharacterIterator.Attribute attribute) Get the index of the first character of the run with
respect to the given attribute containing the current character. |
public int | getRunStart(Set attributes) Get 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, returning the next character. |
public char | previous() Decrements the iterator's index by one and returns
the character at the new index. |
public void | setAttributeArray(GVTAttributedCharacterIterator.TextAttribute attr, Object[] attValues, int beginIndex, int endIndex) Sets values of a per-character attribute associated with the
content string. |
public char | setIndex(int position) Sets the position to the specified position in the text.
Parameters: position - The new (current) index into the text. |
public void | setString(String s) Sets this iterator's contents to an unattributed copy of String s. |
public void | setString(AttributedString s) Assigns this iterator's contents to be equivalent to AttributedString s. |