|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--AFLPgui.TextPrinter
This class will take a printjob and a string and print that string to the printer, wrapping lines that are to long and moving to a new page when neccessary. It will also add a footer to the bottom of each page saying "Page i of totalNum".
PrintJob| Constructor Summary | |
TextPrinter(java.awt.PrintJob pJob)
Creates a new textprinter with a font of Sans Serif, 12pt. |
|
| Method Summary | |
void |
printString(java.lang.String output,
java.awt.Graphics firstPage)
Prints the given string to the destination of the print job given in the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextPrinter(java.awt.PrintJob pJob)
pJob - the printer job that will provide the graphics to print to| Method Detail |
public void printString(java.lang.String output,
java.awt.Graphics firstPage)
output - the text to print. Lines should be seperated with a
'\n' character.firstPage - the first page of the print job.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||