CONTENTS | PREV | NEXT | Java 2D API |
Interface DescriptionPrintable
The Printable
interface is implemented by each page painter, the application class(es) called by the printing system to render a page. The system calls the page painter'sPageable
The Pageable
interface is implemented by a document that is to be printed by the printing system. Through thePageable
methods, the system can determine the number of pages in the document, the format to use for each page, and the page painter to use to render each page.PrinterGraphics
The Graphics2D
objects that a page painter uses to render a page implement thePrinterGraphics
interface. This enables an application to get thePrinterJob
object that is controlling the printing.
Class DescriptionBook
Represents a document in which pages can have different page formats and page painters. This class uses the
Pageable
interface to interact with aPrinterJob
.PageFormat
Describes the size and orientation of a page to be printed, as well as the Paper
used to print it. For example, portrait and landscape paper orientations are represented byPageFormat
.Paper
Describes the physical characteristics of a piece of paper. PrinterJob
The principal class that controls printing. The application calls PrinterJob
methods to set up a job, display a print dialog to the user (optional), and to print the pages in the job.