| CONTENTS | PREV | NEXT | Java 2D API |
Interface DescriptionPrintableThe Printableinterface 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'sPageableThe Pageableinterface is implemented by a document that is to be printed by the printing system. Through thePageablemethods, 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.PrinterGraphicsThe Graphics2Dobjects that a page painter uses to render a page implement thePrinterGraphicsinterface. This enables an application to get thePrinterJobobject that is controlling the printing.
Class DescriptionBookRepresents a document in which pages can have different page formats and page painters. This class uses the
Pageableinterface to interact with aPrinterJob.PageFormatDescribes the size and orientation of a page to be printed, as well as the Paperused to print it. For example, portrait and landscape paper orientations are represented byPageFormat.PaperDescribes the physical characteristics of a piece of paper. PrinterJobThe principal class that controls printing. The application calls PrinterJobmethods to set up a job, display a print dialog to the user (optional), and to print the pages in the job.