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.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Book
public Book()
- Create a new, empty book.
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'.
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.