O'Reilly logo

PURE Java™ 2 by Kenneth Litwak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required