edu.northwestern.at.utils.swing.printing
Interface PrintProgress

All Superinterfaces:
java.awt.print.Printable
All Known Implementing Classes:
PrintableComponent, PrintJTable, PrintJTextPane

public interface PrintProgress
extends java.awt.print.Printable

PrintProgress -- interface for print progress updates.

PrintProgress extends the standard Printable interface with methods to support setting the printer job, page format, and print progress display.


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Method Summary
 void closeProgress()
          Close progress dialog.
 void setPageFormat(java.awt.print.PageFormat pageFormat)
          Set page format.
 void setPrinterJob(java.awt.print.PrinterJob printerJob)
          Set printer job.
 void setProgress(boolean onOff)
          Enable or disable print progress.
 void updateProgress(int pagesPrinted)
          Update the print progress display with pages printed.
 
Methods inherited from interface java.awt.print.Printable
print
 

Method Detail

setPrinterJob

void setPrinterJob(java.awt.print.PrinterJob printerJob)
Set printer job.

Parameters:
printerJob - The printer job used for printing.

setPageFormat

void setPageFormat(java.awt.print.PageFormat pageFormat)
Set page format.

Parameters:
pageFormat - The page format used for printing.

setProgress

void setProgress(boolean onOff)
Enable or disable print progress.

Parameters:
onOff - True to enable print progress, false to disable.

updateProgress

void updateProgress(int pagesPrinted)
Update the print progress display with pages printed.

Parameters:
pagesPrinted - The number of pages printed.

closeProgress

void closeProgress()
Close progress dialog.