Spec-Zone .ru
спецификации, руководства, описания, API
CONTENTS | PREV | NEXT Java 2D API


7.1 Interfaces and Classes


Interface

Description

Printable

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's print method to request that a page be rendered.

Pageable

The Pageable interface is implemented by a document that is to be printed by the printing system. Through the Pageable 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 the PrinterGraphics interface. This enables an application to get the PrinterJob object that is controlling the printing.




Class

Description

Book

Implements: Pageable

Represents a document in which pages can have different page formats and page painters. This class uses the Pageable interface to interact with a PrinterJob.

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 by PageFormat.

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.



CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.