java.awt.print Interface and Class Details

This package provides improved support (over JDK 1.0 and 1.1) for printing. It is built upon Java 2D support. This is a function of the fact that printing actually involves drawing a graphical image of the GUI to a printer.

Interface Pageable

public abstract interface Pageable
						

A Pageable object represents a set of pages. It also can provide page format and printable information on a specific page in the set of pages that the Pageable object represents. Prior to Java 2, there was no way to readily associate multiple pages.

Fields
public static final int    UNKNOWN_NUMBER_OF_PAGES
							
Methods
public int           getNumberOfPages()
public PageFormat    getPageFormat(int pageIndex) throws IndexOutOfBoundsException public ...

Get PURE Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.