|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.print.PrinterJob
Method Summary | |
abstract void | cancel()
If a print job is in progress, print() has been called but has not returned, then this signals that the job should be cancelled and the next chance. |
PageFormat | defaultPage()
A new PageFormat instance is created and then set with a default size and orientation. |
abstract PageFormat | defaultPage(PageFormat page)
The passed in PageFormat is cloned and the clone altered to describe a default page size and orientation. |
abstract int | getCopies()
Get the number of copies to be printed. |
abstract String | getJobName()
Get the name of the document to be printed. |
static PrinterJob | getPrinterJob()
Creates and returns a PrinterJob. |
abstract String | getUserName()
Get the name of the printing user. |
abstract boolean | isCancelled()
Returns true is a print job is ongoing but will be cancelled and the next opportunity. false is returned otherwise. |
abstract PageFormat | pageDialog(PageFormat page)
Display a dialog to the user allowing the modification of a PageFormat instance. |
abstract void | print()
Prints a set of pages. |
abstract boolean | printDialog()
Presents the user a dialog for changing properties of the print job interactively. |
abstract void | setCopies(int copies)
Set the number of copies to be printed. |
abstract void | setJobName(String jobName)
Set the name of the document to be printed. |
abstract void | setPageable(Pageable document)
The pages in the document to be printed are held by the Pageable instance 'document'. |
abstract void | setPrintable(Printable painter,
PageFormat format)
The pages in the document to be printed by this PrinterJob are drawn by the Printable object 'painter'. |
abstract void | setPrintable(Printable painter)
The pages in the document to be printed by this PrinterJob are drawn by the Printable object 'painter'. |
abstract PageFormat | validatePage(PageFormat page)
The passed in PageFormat is altered to be usable on the PrinterJob's current printer. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Method Detail |
public static PrinterJob getPrinterJob()
public abstract void setPrintable(Printable painter)
Printable
- Called to render each page of the document.public abstract void setPrintable(Printable painter, PageFormat format)
Printable
- Called to render each page of the document.
PageFormat
- The size and orientation of each page to
be printed.public abstract void setPageable(Pageable document) throws NullPointerException
Pageable
- The document to be printed. It may not be null.PageFormat
,
Printable
public abstract boolean printDialog()
public abstract PageFormat pageDialog(PageFormat page)
page
argument is used to initialize controls
in the page setup dialog.
If the user cancels the dialog, then the method returns the
original page
object unmodified.
If the user okays the dialog then the method returns a new
PageFormat object with the indicated changes.
In either case the original page
object will
not be modified.
page
- the default PageFormat presented to the user
for modificationpage
object if the dialog
is cancelled, or a new PageFormat object containing
the format indicated by the user if the dialog is
acknowledgedpublic abstract PageFormat defaultPage(PageFormat page)
PageFormat
- This object is cloned and the
clone altered to describe a default
PageFormat.public PageFormat defaultPage()
public abstract PageFormat validatePage(PageFormat page)
java.awt.print.PageFormat
- this page description is cloned
and then its settings are altered
to be usuable for this printer job.public abstract void print() throws PrinterException
Book
,
Pageable
,
Printable
public abstract void setCopies(int copies)
public abstract int getCopies()
public abstract String getUserName()
public abstract void setJobName(String jobName)
public abstract String getJobName()
public abstract void cancel()
public abstract boolean isCancelled()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |