Java java.awt.print PrinterJob fields, constructors, methods, implement or subclass

Example usage for Java java.awt.print PrinterJob fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.print PrinterJob.

The text is from its open source code.

Method

PageFormatdefaultPage()
Creates a new PageFormat instance and sets it to a default size and orientation.
PageFormatdefaultPage(PageFormat page)
Clones the PageFormat argument and alters the clone to describe a default page size and orientation.
PrinterJobgetPrinterJob()
Creates and returns a PrinterJob which is initially associated with the default printer.
PrintServicegetPrintService()
Returns the service (printer) for this printer job.
PrintService[]lookupPrintServices()
A convenience method which looks up 2D print services.
PageFormatpageDialog(PageFormat page)
Displays a dialog that allows modification of a PageFormat instance.
PageFormatpageDialog(PrintRequestAttributeSet attributes)
A convenience method which displays a cross-platform page setup dialog.
voidprint()
Prints a set of pages.
voidprint(PrintRequestAttributeSet attributes)
Prints a set of pages using the settings in the attribute set.
booleanprintDialog()
Presents a dialog to the user for changing the properties of the print job.
booleanprintDialog(PrintRequestAttributeSet attributes)
A convenience method which displays a cross-platform print dialog for all services which are capable of printing 2D graphics using the Pageable interface.
voidsetCopies(int copies)
Sets the number of copies to be printed.
voidsetJobName(String jobName)
Sets the name of the document to be printed.
voidsetPageable(Pageable document)
Queries document for the number of pages and the PageFormat and Printable for each page held in the Pageable instance, document .
voidsetPrintable(Printable painter)
Calls painter to render the pages.
voidsetPrintable(Printable painter, PageFormat format)
Calls painter to render the pages in the specified format .
voidsetPrintService(PrintService service)
Associate this PrinterJob with a new PrintService.
PageFormatvalidatePage(PageFormat page)
Returns the clone of page with its settings adjusted to be compatible with the current printer of this PrinterJob .