Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.awt.print.Book

java.lang.Object
    |
    +----java.awt.print.Book

public class Book
extends Object
implements Pageable
A Book maintains a list of pages to be printed.


Inner Class Summary
 Book.BookPageContext
The BookPageContext inner class describes an individual page in a Book.
 

Constructor Summary
 Book()
Create a new, empty book.
 

Method Summary
void  append(PageFormat page, Printable painter)
Append a single page to the end of this document.
void  append(PageFormat page, Printable painter, int numPages)
Append 'numPages' pages to the end of this document.
int  getNumberOfPages()
Return the number of pages in this document.
PageContext  getPage(int pageIndex)
 
void  setPage(int pageNumber, PageFormat page, Printable painter)
Set the page format and the painter for a given page number.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Book

public Book()
Create a new, empty book.
Method Detail

getNumberOfPages

public int getNumberOfPages()
Return the number of pages in this document.
Implements:
getNumberOfPages in interface Pageable

getPage

public PageContext getPage(int pageIndex) throws IndexOutOfBoundsException
Implements:
getPage in interface Pageable

setPage

public void setPage(int pageNumber,
                    PageFormat page,
                    Printable painter) throws IndexOutOfBoundsException
Set the page format and the painter for a given page number. If the page specified is not already in the book, then an IndexOutOfBoundsException excpetion is thrown.

append

public void append(PageFormat page,
                   Printable painter)
Append a single page to the end of this document.

append

public void append(PageFormat page,
                   Printable painter,
                   int numPages)
Append 'numPages' pages to the end of this document. Each of the pages is associated with 'page'.

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.