Cloneable, AttributedCharacterIterator, CharacterIteratorpublic static class AttributedCharacters.AttributedCharacterIteratorImpl extends Object implements AttributedCharacterIterator
AttributedCharacterIterator.Attribute| Modifier and Type | Field | Description |
|---|---|---|
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<AttributedCharacterIterator.Attribute> |
singleton |
Singleton.
|
DONE| Constructor | Description |
|---|---|
AttributedCharacterIteratorImpl(char[] chars,
Font[] fonts,
Color[] colors,
int[] rs,
int[] rl) |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
clone() |
|
char |
current() |
|
char |
first() |
|
Set<AttributedCharacterIterator.Attribute> |
getAllAttributeKeys() |
|
Object |
getAttribute(AttributedCharacterIterator.Attribute att) |
|
Map<AttributedCharacterIterator.Attribute,Object> |
getAttributes() |
|
int |
getBeginIndex() |
|
int |
getEndIndex() |
|
int |
getIndex() |
|
int |
getRunLimit() |
|
int |
getRunLimit(AttributedCharacterIterator.Attribute att) |
|
int |
getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes) |
|
int |
getRunStart() |
|
int |
getRunStart(AttributedCharacterIterator.Attribute att) |
|
int |
getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes) |
|
char |
last() |
|
char |
next() |
|
char |
previous() |
|
char |
setIndex(int i) |
protected int current
protected char[] chars
protected Font[] fonts
protected Color[] colors
protected int[] runStart
protected int[] runLimit
protected Set<AttributedCharacterIterator.Attribute> singleton
public Object clone()
clone in interface CharacterIteratorclone in class Objectpublic char current()
current in interface CharacterIteratorpublic char first()
first in interface CharacterIteratorpublic int getBeginIndex()
getBeginIndex in interface CharacterIteratorpublic int getEndIndex()
getEndIndex in interface CharacterIteratorpublic int getIndex()
getIndex in interface CharacterIteratorpublic char last()
last in interface CharacterIteratorpublic char next()
next in interface CharacterIteratorpublic char previous()
previous in interface CharacterIteratorpublic char setIndex(int i)
setIndex in interface CharacterIteratorpublic Set<AttributedCharacterIterator.Attribute> getAllAttributeKeys()
getAllAttributeKeys in interface AttributedCharacterIteratorpublic Object getAttribute(AttributedCharacterIterator.Attribute att)
getAttribute in interface AttributedCharacterIteratorpublic Map<AttributedCharacterIterator.Attribute,Object> getAttributes()
getAttributes in interface AttributedCharacterIteratorpublic int getRunLimit()
getRunLimit in interface AttributedCharacterIteratorpublic int getRunLimit(AttributedCharacterIterator.Attribute att)
getRunLimit in interface AttributedCharacterIteratorpublic int getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
getRunLimit in interface AttributedCharacterIteratorpublic int getRunStart()
getRunStart in interface AttributedCharacterIteratorpublic int getRunStart(AttributedCharacterIterator.Attribute att)
getRunStart in interface AttributedCharacterIteratorpublic int getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
getRunStart in interface AttributedCharacterIteratorBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.