public class AttributedCharacters
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AttributedCharacters.AttributedCharacterIteratorImpl |
Implementation of AttributedCharacterIterator interface.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected char[] |
chars |
Characters to iterate.
|
protected java.awt.Color[] |
colors |
Color for each character.
|
protected int |
current |
Current.
|
protected java.awt.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 | Description |
|---|---|
AttributedCharacters() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
append(char[] a,
java.awt.Font f,
java.awt.Color color) |
Append a character array with a font.
|
void |
append(char c,
java.awt.Font f,
java.awt.Color color) |
Append a character with specified font.
|
java.text.AttributedCharacterIterator |
iterator() |
Produce an appropriate character iterator.
|
protected char[] chars
protected java.awt.Font[] fonts
protected java.awt.Color[] colors
protected int[] runStart
protected int[] runLimit
protected int current
public void append(char c,
java.awt.Font f,
java.awt.Color color)
c - character to appendf - a Fontcolor - a Colorpublic void append(char[] a,
java.awt.Font f,
java.awt.Color color)
a - characters to appendf - a font to usecolor - a color to usepublic java.text.AttributedCharacterIterator iterator()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.