|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer org.colos.ejs.library.utils.HardcopyWriter
public class HardcopyWriter
A character output stream that sends output to a printer.
Nested Class Summary | |
---|---|
static class |
HardcopyWriter.PrintCanceledException
This is the exception class that the HardcopyWriter constructor throws when the user clicks "Cancel" in the print dialog box. |
Constructor Summary | |
---|---|
HardcopyWriter(java.awt.Frame frame,
java.lang.String jobname,
int fontsize,
double leftmargin,
double rightmargin,
double topmargin,
double bottommargin)
The constructor for this class has a bunch of arguments: The frame argument is required for all printing in Java. |
Method Summary | |
---|---|
void |
close()
This is the close() method that all Writer subclasses must implement. |
void |
flush()
This is the flush() method that all Writer subclasses must implement. |
int |
getCharactersPerLine()
Return the number of columns of characters that fit on the page |
int |
getLinesPerPage()
Return the number of lines that fit on a page |
void |
pageBreak()
End the current page. |
void |
setFontStyle(int style)
Set the font style. |
void |
write(char[] buffer,
int index,
int len)
This is the write() method of the stream. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HardcopyWriter(java.awt.Frame frame, java.lang.String jobname, int fontsize, double leftmargin, double rightmargin, double topmargin, double bottommargin) throws HardcopyWriter.PrintCanceledException
HardcopyWriter.PrintCanceledException
Method Detail |
---|
public void write(char[] buffer, int index, int len)
write
in class java.io.Writer
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.io.Closeable
close
in class java.io.Writer
public void setFontStyle(int style)
public void pageBreak()
public int getCharactersPerLine()
public int getLinesPerPage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |