| Package | Description |
|---|---|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| Modifier and Type | Method and Description |
|---|---|
PageFormat |
PrinterJob.defaultPage()
Creates a new
PageFormat instance and sets it to a default size and orientation.
|
abstract PageFormat |
PrinterJob.defaultPage(PageFormat
Clones the
PageFormat argument and alters the clone to describe a default page size and orientation.
|
PageFormat |
Book.getPageFormat(int pageIndex)
Returns the
PageFormat of the page specified by
pageIndex.
|
PageFormat |
Pageable.getPageFormat(int pageIndex)
Returns the
PageFormat of the page specified by
pageIndex.
|
PageFormat |
PrinterJob.getPageFormat(PrintRequestAttributeSet
Calculates a
PageFormat with values consistent with those supported by the current
PrintService for this job (ie the value returned by
getPrintService()) and media, printable area and orientation contained in
attributes.
|
abstract PageFormat |
PrinterJob.pageDialog(PageFormat
Displays a dialog that allows modification of a
PageFormat instance.
|
PageFormat |
PrinterJob.pageDialog(PrintRequestAttributeSet
A convenience method which displays a cross-platform page setup dialog.
|
abstract PageFormat |
PrinterJob.validatePage(PageFormat
Returns the clone of
page with its settings adjusted to be compatible with the current printer of this
PrinterJob.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Book.append(Printable
Appends a single page to the end of this
Book.
|
void |
Book.append(Printable
Appends
numPages pages to the end of this
Book.
|
abstract PageFormat |
PrinterJob.defaultPage(PageFormat
Clones the
PageFormat argument and alters the clone to describe a default page size and orientation.
|
abstract PageFormat |
PrinterJob.pageDialog(PageFormat
Displays a dialog that allows modification of a
PageFormat instance.
|
int |
Printable.print(Graphics
Prints the page at the specified index into the specified
Graphics context in the specified format.
|
void |
Book.setPage(int pageIndex, Printable
Sets the
PageFormat and the
Painter for a specified page number.
|
abstract void |
PrinterJob.setPrintable(Printable
Calls
painter to render the pages in the specified
format.
|
abstract PageFormat |
PrinterJob.validatePage(PageFormat
Returns the clone of
page with its settings adjusted to be compatible with the current printer of this
PrinterJob.
|