|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.pageable.output.PlainTextPage
The plain text page is used to buffer a complete page and to write the buffered data when the page is closed.
Nested Class Summary | |
protected class |
PlainTextPage.TextDataChunk
A data carrier to collect and store text data for the output. |
Constructor Summary | |
PlainTextPage(int w,
int h,
PrinterCommandSet commandSet)
Creates a new PlainTextPage with the given dimensions and the specified PrinterCommandSet. |
Method Summary | |
void |
addTextChunk(int x,
int y,
int w,
java.lang.String text,
FontDefinition format)
Adds a new text chunk to this PlainTextPage. |
int |
getHeight()
Returns the page height in lines. |
int |
getWidth()
Returns the page width in characters. |
void |
writePage()
Writes the contents of the page using the printer command set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlainTextPage(int w, int h, PrinterCommandSet commandSet)
w
- the number of columns on the pageh
- the number of rows on the pagecommandSet
- the commandset for printing and formating the text.Method Detail |
public int getWidth()
public int getHeight()
public void addTextChunk(int x, int y, int w, java.lang.String text, FontDefinition format)
x
- the column of the first character of the texty
- the row where to print the textw
- the number of characters to print.text
- the text that should be printed.format
- the fontdefinition used to format the text.public void writePage() throws java.io.IOException
java.io.IOException
- if an I/O error occured while writing the page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |