Home » openjdk-7 » java » awt » font » [javadoc | source]
java.awt.font
class: CharArrayIterator [javadoc | source]
java.lang.Object
   java.awt.font.CharArrayIterator

All Implemented Interfaces:
    CharacterIterator

Constructor:
 CharArrayIterator(char[] chars) 
 CharArrayIterator(char[] chars,
    int begin) 
Method from java.awt.font.CharArrayIterator Summary:
clone,   current,   first,   getBeginIndex,   getEndIndex,   getIndex,   last,   next,   previous,   reset,   reset,   setIndex
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.font.CharArrayIterator Detail:
 public Object clone() 
    Create a copy of this iterator
 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 int getBeginIndex() 
    Returns the start index of the text.
 public int getEndIndex() 
    Returns the end index of the text. This index is the index of the first character following the end of the text.
 public int getIndex() 
    Returns the current index.
 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. If the resulting index is greater or equal to getEndIndex(), the current index is reset to getEndIndex() and a value of DONE is returned.
 public char previous() 
    Decrements the iterator's index by one and returns the character at the new index. If the current index is getBeginIndex(), the index remains at getBeginIndex() and a value of DONE is returned.
  void reset(char[] chars) 
  void reset(char[] chars,
    int begin) 
 public char setIndex(int position) 
    Sets the position to the specified position in the text and returns that character.