org.openide.text
Class AttributedCharacters.AttributedCharacterIteratorImpl
java.lang.Object
|
+--org.openide.text.AttributedCharacters.AttributedCharacterIteratorImpl
- All Implemented Interfaces:
- AttributedCharacterIterator, CharacterIterator, Cloneable
- Enclosing class:
- AttributedCharacters
- public static class AttributedCharacters.AttributedCharacterIteratorImpl
- extends Object
- implements AttributedCharacterIterator
Implementation of AttributedCharacterIterator interface.
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. |
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.
AttributedCharacters.AttributedCharacterIteratorImpl
public AttributedCharacters.AttributedCharacterIteratorImpl(char[] chars,
Font[] fonts,
Color[] colors,
int[] rs,
int[] rl)
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
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.