org.openide.text 6.9.22

org.openide.text
Class AttributedCharacters.AttributedCharacterIteratorImpl

java.lang.Object
  extended by org.openide.text.AttributedCharacters.AttributedCharacterIteratorImpl
All Implemented Interfaces:
Cloneable, AttributedCharacterIterator, CharacterIterator
Enclosing class:
AttributedCharacters

public static class AttributedCharacters.AttributedCharacterIteratorImpl
extends Object
implements AttributedCharacterIterator

Implementation of AttributedCharacterIterator interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.text.AttributedCharacterIterator
AttributedCharacterIterator.Attribute
 
Field Summary
protected  char[] chars
          Characters to iterate.
protected  Color[] colors
          Color for each character.
protected  int current
          Current position.
protected  Font[] fonts
          Font for each character.
protected  int[] runLimit
          Limit indices of continous ...
protected  int[] runStart
          Start indices of continuous blocks of text with the same font.
protected  Set singleton
          Singleton.
 
Fields inherited from interface java.text.CharacterIterator
DONE
 
Constructor Summary
AttributedCharacters.AttributedCharacterIteratorImpl(char[] chars, Font[] fonts, Color[] colors, int[] rs, int[] rl)
           
 
Method Summary
 Object clone()
           
 char current()
           
 char first()
           
 Set getAllAttributeKeys()
           
 Object getAttribute(AttributedCharacterIterator.Attribute att)
           
 Map getAttributes()
           
 int getBeginIndex()
           
 int getEndIndex()
           
 int getIndex()
           
 int getRunLimit()
           
 int getRunLimit(AttributedCharacterIterator.Attribute att)
           
 int getRunLimit(Set attributes)
           
 int getRunStart()
           
 int getRunStart(AttributedCharacterIterator.Attribute att)
           
 int getRunStart(Set attributes)
           
 char last()
           
 char next()
           
 char previous()
           
 char setIndex(int i)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

protected int current
Current position.


chars

protected char[] chars
Characters to iterate.


fonts

protected Font[] fonts
Font for each character.


colors

protected Color[] colors
Color for each character.


runStart

protected int[] runStart
Start indices of continuous blocks of text with the same font.


runLimit

protected int[] runLimit
Limit indices of continous ...


singleton

protected Set singleton
Singleton.

Constructor Detail

AttributedCharacters.AttributedCharacterIteratorImpl

public AttributedCharacters.AttributedCharacterIteratorImpl(char[] chars,
                                                            Font[] fonts,
                                                            Color[] colors,
                                                            int[] rs,
                                                            int[] rl)
Method Detail

clone

public Object clone()
Specified by:
clone in interface CharacterIterator
Overrides:
clone in class Object

current

public char current()
Specified by:
current in interface CharacterIterator

first

public char first()
Specified by:
first in interface CharacterIterator

getBeginIndex

public int getBeginIndex()
Specified by:
getBeginIndex in interface CharacterIterator

getEndIndex

public int getEndIndex()
Specified by:
getEndIndex in interface CharacterIterator

getIndex

public int getIndex()
Specified by:
getIndex in interface CharacterIterator

last

public char last()
Specified by:
last in interface CharacterIterator

next

public char next()
Specified by:
next in interface CharacterIterator

previous

public char previous()
Specified by:
previous in interface CharacterIterator

setIndex

public char setIndex(int i)
Specified by:
setIndex in interface CharacterIterator

getAllAttributeKeys

public Set getAllAttributeKeys()
Specified by:
getAllAttributeKeys in interface AttributedCharacterIterator

getAttribute

public Object getAttribute(AttributedCharacterIterator.Attribute att)
Specified by:
getAttribute in interface AttributedCharacterIterator

getAttributes

public Map getAttributes()
Specified by:
getAttributes in interface AttributedCharacterIterator

getRunLimit

public int getRunLimit()
Specified by:
getRunLimit in interface AttributedCharacterIterator

getRunLimit

public int getRunLimit(AttributedCharacterIterator.Attribute att)
Specified by:
getRunLimit in interface AttributedCharacterIterator

getRunLimit

public int getRunLimit(Set attributes)
Specified by:
getRunLimit in interface AttributedCharacterIterator

getRunStart

public int getRunStart()
Specified by:
getRunStart in interface AttributedCharacterIterator

getRunStart

public int getRunStart(AttributedCharacterIterator.Attribute att)
Specified by:
getRunStart in interface AttributedCharacterIterator

getRunStart

public int getRunStart(Set attributes)
Specified by:
getRunStart in interface AttributedCharacterIterator

org.openide.text 6.9.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.