|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.AttributedString.AttributedIterator
static class AttributedString.AttributedIterator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.text.AttributedCharacterIterator |
|---|
AttributedCharacterIterator.Attribute |
| Field Summary |
|---|
| Fields inherited from interface java.text.CharacterIterator |
|---|
DONE |
| Constructor Summary | |
|---|---|
AttributedString.AttributedIterator(AttributedString attrString)
|
|
AttributedString.AttributedIterator(AttributedString attrString,
AttributedCharacterIterator.Attribute[] attributes,
int begin,
int end)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a new StringCharacterIterator with the same source String, begin, end, and current index as this StringCharacterIterator. |
char |
current()
Returns the character at the current index in the source String. |
char |
first()
Sets the current position to the begin index and returns the character at the begin index. |
Set<AttributedCharacterIterator.Attribute> |
getAllAttributeKeys()
|
Object |
getAttribute(AttributedCharacterIterator.Attribute attribute)
|
Map<AttributedCharacterIterator.Attribute,Object> |
getAttributes()
|
int |
getBeginIndex()
Returns the begin index in the source String. |
int |
getEndIndex()
Returns the end index in the source String. |
int |
getIndex()
Returns the current index in the source String. |
int |
getRunLimit()
|
int |
getRunLimit(AttributedCharacterIterator.Attribute attribute)
|
int |
getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
|
int |
getRunStart()
|
int |
getRunStart(AttributedCharacterIterator.Attribute attribute)
|
int |
getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
|
char |
last()
Sets the current position to the end index - 1 and returns the character at the current position. |
char |
next()
Increments the current index and returns the character at the new index. |
char |
previous()
Decrements the current index and returns the character at the new index. |
char |
setIndex(int location)
Sets the current index in the source String. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AttributedString.AttributedIterator(AttributedString attrString)
AttributedString.AttributedIterator(AttributedString attrString,
AttributedCharacterIterator.Attribute[] attributes,
int begin,
int end)
| Method Detail |
|---|
public Object clone()
clone in interface CharacterIteratorclone in class ObjectCloneablepublic 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 Set<AttributedCharacterIterator.Attribute> getAllAttributeKeys()
getAllAttributeKeys in interface AttributedCharacterIteratorpublic Object getAttribute(AttributedCharacterIterator.Attribute attribute)
getAttribute in interface AttributedCharacterIteratorpublic Map<AttributedCharacterIterator.Attribute,Object> getAttributes()
getAttributes in interface AttributedCharacterIteratorpublic int getRunLimit()
getRunLimit in interface AttributedCharacterIteratorpublic int getRunLimit(AttributedCharacterIterator.Attribute attribute)
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 attribute)
getRunStart in interface AttributedCharacterIteratorpublic int getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
getRunStart in interface AttributedCharacterIteratorpublic char last()
last in interface CharacterIteratorpublic char next()
next in interface CharacterIteratorpublic char previous()
previous in interface CharacterIteratorpublic char setIndex(int location)
setIndex in interface CharacterIteratorlocation - The index the CharacterIterator is set to.
IllegalArgumentException - when the new index is less than the begin index or
greater than the end index
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||