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

PrintContainer (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Interface PrintContainer


public interface PrintContainer

Container for printed text. The parts of text attributed by font, fore and back color are added to it for the whole printed area.


Method Summary
 void add(char[] chars, Font font, Color foreColor, Color backColor)
          Add the attributed characters to the container.
 void eol()
          End of line was found.
 boolean initEmptyLines()
           
 

Method Detail

add

void add(char[] chars,
         Font font,
         Color foreColor,
         Color backColor)
Add the attributed characters to the container.

Parameters:
chars - characters being added.
font - font of the added characters
foreColor - foreground color of the added characters
backColor - background color of the added characters

eol

void eol()
End of line was found.


initEmptyLines

boolean initEmptyLines()
Returns:
true if the container needs to init empty line with at least one character. Printing then adds one space to each empty line. False means that the container is able to accept lines with no characters.

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.