站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.1

AttributedCharacters (NetBeans Text API) - NetBeans API Javadoc 5.5.1

org.openide.text 6.9.32

org.openide.text
Class AttributedCharacters

java.lang.Object
  extended by org.openide.text.AttributedCharacters

public class AttributedCharacters
extends Object

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

chars

protected char[] chars
Characters to iterate.


fonts

protected Font[] fonts
Font for each character.


colors

protected Color[] colors
Color for each character.


runStart

protected int[] runStart
Start indices of continuous blocks of text with the same font.


runLimit

protected int[] runLimit
Limit indices of continous ...


current

protected int current
Current.

Constructor Detail

AttributedCharacters

public AttributedCharacters()
Method Detail

append

public void append(char c,
                   Font f,
                   Color color)
Append a character with specified font.

Parameters:
c - character to append
f - a Font
color - a Color

append

public void append(char[] a,
                   Font f,
                   Color color)
Append a character array with a font.

Parameters:
a - characters to append
f - a font to use
color - a color to use

iterator

public AttributedCharacterIterator iterator()
Produce an appropriate character iterator.

Returns:
an iterator

org.openide.text 6.9.32

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.