jApp
Class DocumentPrinter

java.lang.Object
  extended by jApp.DocumentPrinter
All Implemented Interfaces:
java.awt.print.Printable

public class DocumentPrinter
extends java.lang.Object
implements java.awt.print.Printable


Field Summary
protected  ProgressDialog m_ProgressDialog
           
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
DocumentPrinter()
           
 
Method Summary
 int getNumberOfPages(java.awt.print.PageFormat pf)
           
 int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
           
 void setProgressDialog(ProgressDialog pd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ProgressDialog

protected ProgressDialog m_ProgressDialog
Constructor Detail

DocumentPrinter

public DocumentPrinter()
Method Detail

setProgressDialog

public void setProgressDialog(ProgressDialog pd)

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pf,
                 int pageIndex)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException

getNumberOfPages

public int getNumberOfPages(java.awt.print.PageFormat pf)