Cloneable
, AttributedCharacterIterator
, CharacterIterator
public 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 CharacterIterator
clone
in class Object
public char current()
current
in interface CharacterIterator
public char first()
first
in interface CharacterIterator
public int getBeginIndex()
getBeginIndex
in interface CharacterIterator
public int getEndIndex()
getEndIndex
in interface CharacterIterator
public int getIndex()
getIndex
in interface CharacterIterator
public char last()
last
in interface CharacterIterator
public char next()
next
in interface CharacterIterator
public char previous()
previous
in interface CharacterIterator
public char setIndex(int i)
setIndex
in interface CharacterIterator
public Set<AttributedCharacterIterator.Attribute> getAllAttributeKeys()
getAllAttributeKeys
in interface AttributedCharacterIterator
public Object getAttribute(AttributedCharacterIterator.Attribute att)
getAttribute
in interface AttributedCharacterIterator
public Map<AttributedCharacterIterator.Attribute,Object> getAttributes()
getAttributes
in interface AttributedCharacterIterator
public int getRunLimit()
getRunLimit
in interface AttributedCharacterIterator
public int getRunLimit(AttributedCharacterIterator.Attribute att)
getRunLimit
in interface AttributedCharacterIterator
public int getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
getRunLimit
in interface AttributedCharacterIterator
public int getRunStart()
getRunStart
in interface AttributedCharacterIterator
public int getRunStart(AttributedCharacterIterator.Attribute att)
getRunStart
in interface AttributedCharacterIterator
public int getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
getRunStart
in interface AttributedCharacterIterator
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.