01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor;
15:
16: import java.awt.Color;
17: import java.awt.Font;
18:
19: /**
20: * Container for printed text. The parts of text attributed by font, fore and
21: * back color are added to it for the whole printed area.
22: *
23: * @author Miloslav Metelka
24: * @version 1.00
25: */
26:
27: public interface PrintContainer {
28:
29: /**
30: * Add the attributed characters to the container.
31: *
32: * @param chars
33: * characters being added.
34: * @param font
35: * font of the added characters
36: * @param foreColor
37: * foreground color of the added characters
38: * @param backColor
39: * background color of the added characters
40: */
41: public void add(char[] chars, Font font, Color foreColor,
42: Color backColor);
43:
44: /** End of line was found. */
45: public void eol();
46:
47: /**
48: * @return true if the container needs to init empty line with at least one
49: * character. Printing then adds one space to each empty line. False
50: * means that the container is able to accept lines with no
51: * characters.
52: */
53: public boolean initEmptyLines();
54:
55: }
|