API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.print. Book View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      Book
Implements
 Pageable
Subclasses
Description
public class Book
  The Book class provides a representation of a document in which pages may have different page formats and page painters.
See also:    Pageable PrinterJob
Constructors
public Book ()
Creates a new, empty Book.
Methods
Hide/Show inherited methods
public void append (Printable painter, PageFormat page)
  Appends a single page to the end of this Book.
public void append (Printable painter, PageFormat page, int numPages)
  Appends numPages pages to the end of this Book.
public int getNumberOfPages () [Specified in Pageable]
  Returns the number of pages in this Book.
public PageFormat getPageFormat (int pageIndex) throws IndexOutOfBoundsException [Specified in Pageable]
  Returns the PageFormat of the page specified by pageIndex.
public Printable getPrintable (int pageIndex) throws IndexOutOfBoundsException [Specified in Pageable]
  Returns the Printable instance responsible for rendering the page specified by pageIndex.
public void setPage (int pageIndex, Printable painter, PageFormat page) throws IndexOutOfBoundsException
  Sets the PageFormat and the Painter for a specified page number.
Fields
Hide/Show inherited fields
publicfinalstatic int UNKNOWN_NUMBER_OF_PAGES = "-1" [Inherited From Pageable]
This constant is returned from the getNumberOfPages method if a Pageable implementation does not know the number of pages in its set.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar