|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.text.AttributedCharacters
The class is a support for all classes that implement PrintCookie. Allows creating of attributed texts.
Nested Class Summary | |
static class |
AttributedCharacters.AttributedCharacterIteratorImpl
Implementation of AttributedCharacterIterator interface. |
Field Summary | |
protected char[] |
chars
Characters to iterate. |
protected Color[] |
colors
Color for each character. |
protected int |
current
Current. |
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. |
Constructor Summary | |
AttributedCharacters()
|
Method Summary | |
void |
append(char[] a,
Font f,
Color color)
Append a character array with a font. |
void |
append(char c,
Font f,
Color color)
Append a character with specified font. |
AttributedCharacterIterator |
iterator()
Produce an appropriate character iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected char[] chars
protected Font[] fonts
protected Color[] colors
protected int[] runStart
protected int[] runLimit
protected int current
Constructor Detail |
public AttributedCharacters()
Method Detail |
public void append(char c, Font f, Color color)
c
- character to appendf
- a Fontcolor
- a Colorpublic void append(char[] a, Font f, Color color)
a
- characters to appendf
- a font to usecolor
- a color to usepublic AttributedCharacterIterator iterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |