Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cgsuite.plugin
Class StyledTextOutput.STOCharacterIterator  view StyledTextOutput.STOCharacterIterator download StyledTextOutput.STOCharacterIterator.java

java.lang.Object
  extended bycgsuite.plugin.StyledTextOutput.STOCharacterIterator
All Implemented Interfaces:
java.text.AttributedCharacterIterator, java.text.CharacterIterator, java.lang.Cloneable
Enclosing class:
StyledTextOutput

private static class StyledTextOutput.STOCharacterIterator
extends java.lang.Object
implements java.text.AttributedCharacterIterator


Nested Class Summary
 
Nested classes inherited from class java.text.AttributedCharacterIterator
java.text.AttributedCharacterIterator.Attribute
 
Field Summary
(package private)  java.util.Set attributeKeys
           
(package private)  int index
           
(package private)  StyledTextOutput.Block[] referringBlocks
           
(package private)  java.lang.String text
           
 
Fields inherited from interface java.text.CharacterIterator
DONE
 
Constructor Summary
(package private) StyledTextOutput.STOCharacterIterator()
           
 
Method Summary
 java.lang.Object clone()
          This method creates a copy of this CharacterIterator.
 char current()
          This method returns the character at the current index position
 char first()
          This method sets the index value to the beginning of the range and returns the character there.
 java.util.Set getAllAttributeKeys()
          Returns a list of all keys that are defined for the text range.
 java.lang.Object getAttribute(java.text.AttributedCharacterIterator.Attribute attribute)
          Returns the value of the specified attribute for the current character.
 java.util.Map getAttributes()
          Returns a Map of the attributes defined for the current character.
 int getBeginIndex()
          This method returns the character position of the first character in the range.
 int getEndIndex()
          This method returns the character position of the end of the text range.
 int getIndex()
          This method returns the current value of the index.
 int getRunLimit()
          Returns the index of the character after the end of the run that contains all attributes defined for the current character.
 int getRunLimit(java.text.AttributedCharacterIterator.Attribute attribute)
          Returns the index of the character after the end of the run that contains the specified attribute defined for the current character.
 int getRunLimit(java.util.Set set)
          Returns the index of the character after the end of the run that contains all attributes in the specified Set defined for the current character.
 int getRunStart()
          Returns the index of the first character in the run that contains all attributes defined for the current character.
 int getRunStart(java.text.AttributedCharacterIterator.Attribute attribute)
          Returns the index of the first character in the run that contains the specified attribute defined for the current character.
 int getRunStart(java.util.Set set)
          Returns the index of the first character in the run that contains all attributes in the specified Set defined for the current character.
 char last()
          This method sets the index value to getEndIndex() - 1 and returns the character there.
 char next()
          This method increments the current index and then returns the character at the new index value.
 char previous()
          This method decrements the current index and then returns the character at the new index value.
 char setIndex(int param)
          This method sets the value of the index to the specified value, then returns the character at that position.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

java.lang.String text

referringBlocks

StyledTextOutput.Block[] referringBlocks

attributeKeys

java.util.Set attributeKeys

index

int index
Constructor Detail

StyledTextOutput.STOCharacterIterator

StyledTextOutput.STOCharacterIterator()
Method Detail

clone

public java.lang.Object clone()
Description copied from interface: java.text.CharacterIterator
This method creates a copy of this CharacterIterator.

Specified by:
clone in interface java.text.CharacterIterator

current

public char current()
Description copied from interface: java.text.CharacterIterator
This method returns the character at the current index position

Specified by:
current in interface java.text.CharacterIterator

first

public char first()
Description copied from interface: java.text.CharacterIterator
This method sets the index value to the beginning of the range and returns the character there.

Specified by:
first in interface java.text.CharacterIterator

getBeginIndex

public int getBeginIndex()
Description copied from interface: java.text.CharacterIterator
This method returns the character position of the first character in the range.

Specified by:
getBeginIndex in interface java.text.CharacterIterator

getEndIndex

public int getEndIndex()
Description copied from interface: java.text.CharacterIterator
This method returns the character position of the end of the text range. This will actually be the index of the first character following the end of the range. In the event the text range is empty, this will be equal to the first character in the range.

Specified by:
getEndIndex in interface java.text.CharacterIterator

getIndex

public int getIndex()
Description copied from interface: java.text.CharacterIterator
This method returns the current value of the index.

Specified by:
getIndex in interface java.text.CharacterIterator

last

public char last()
Description copied from interface: java.text.CharacterIterator
This method sets the index value to getEndIndex() - 1 and returns the character there. If the range is empty, then the index value will be set equal to the beginning index.

Specified by:
last in interface java.text.CharacterIterator

next

public char next()
Description copied from interface: java.text.CharacterIterator
This method increments the current index and then returns the character at the new index value. If the index is already at getEndIndex() - 1, it will not be incremented.

Specified by:
next in interface java.text.CharacterIterator

previous

public char previous()
Description copied from interface: java.text.CharacterIterator
This method decrements the current index and then returns the character at the new index value. If the index value is already at the beginning index, it will not be decremented.

Specified by:
previous in interface java.text.CharacterIterator

setIndex

public char setIndex(int param)
Description copied from interface: java.text.CharacterIterator
This method sets the value of the index to the specified value, then returns the character at that position.

Specified by:
setIndex in interface java.text.CharacterIterator

getAllAttributeKeys

public java.util.Set getAllAttributeKeys()
Description copied from interface: java.text.AttributedCharacterIterator
Returns a list of all keys that are defined for the text range. This can be an empty list if no attributes are defined.

Specified by:
getAllAttributeKeys in interface java.text.AttributedCharacterIterator

getAttribute

public java.lang.Object getAttribute(java.text.AttributedCharacterIterator.Attribute attribute)
Description copied from interface: java.text.AttributedCharacterIterator
Returns the value of the specified attribute for the current character. If the attribute is not defined for the current character, null is returned.

Specified by:
getAttribute in interface java.text.AttributedCharacterIterator

getAttributes

public java.util.Map getAttributes()
Description copied from interface: java.text.AttributedCharacterIterator
Returns a Map of the attributes defined for the current character.

Specified by:
getAttributes in interface java.text.AttributedCharacterIterator

getRunLimit

public int getRunLimit()
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the character after the end of the run that contains all attributes defined for the current character.

Specified by:
getRunLimit in interface java.text.AttributedCharacterIterator

getRunLimit

public int getRunLimit(java.util.Set set)
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the character after the end of the run that contains all attributes in the specified Set defined for the current character.

Specified by:
getRunLimit in interface java.text.AttributedCharacterIterator

getRunLimit

public int getRunLimit(java.text.AttributedCharacterIterator.Attribute attribute)
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the character after the end of the run that contains the specified attribute defined for the current character.

Specified by:
getRunLimit in interface java.text.AttributedCharacterIterator

getRunStart

public int getRunStart()
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the first character in the run that contains all attributes defined for the current character.

Specified by:
getRunStart in interface java.text.AttributedCharacterIterator

getRunStart

public int getRunStart(java.text.AttributedCharacterIterator.Attribute attribute)
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the first character in the run that contains the specified attribute defined for the current character.

Specified by:
getRunStart in interface java.text.AttributedCharacterIterator

getRunStart

public int getRunStart(java.util.Set set)
Description copied from interface: java.text.AttributedCharacterIterator
Returns the index of the first character in the run that contains all attributes in the specified Set defined for the current character.

Specified by:
getRunStart in interface java.text.AttributedCharacterIterator