|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.print.Book
Constructor Summary | |
Book()
Create a new, empty book. |
Method Summary | |
void | append(Printable painter,
PageFormat page,
int numPages)
Append 'numPages' pages to the end of this Book. |
void | append(Printable painter,
PageFormat page)
Append a single page to the end of this Book. |
int | getNumberOfPages()
Return the number of pages in this Book. |
PageFormat | getPageFormat(int pageIndex)
Return the PageFormat of the page specified by 'pageIndex'. |
Printable | getPrintable(int pageIndex)
Return the Printable instance responsible for rendering the page specified by 'pageIndex'. |
void | setPage(int pageIndex,
Printable painter,
PageFormat page)
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 |
public Book()
Method Detail |
public int getNumberOfPages()
public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
int
- The zero based index of the page whose
PageFormat is being requested.public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
int
- The zero based index of the page whose
Printable is being requested.public void setPage(int pageIndex, Printable painter, PageFormat page) throws IndexOutOfBoundsException
int
- The zero based index of the page whose painter
and format will be altered.
painter
- The Printable instance that will draw the page.
page
- The size and orientation of the page.public void append(Printable painter, PageFormat page)
painter
- The Printable instance that will draw the page.
page
- The size and orientation of the page.public void append(Printable painter, PageFormat page, int numPages)
painter
- The Printable instance that will draw the page.
page
- The size and orientation of the page.
int
- The number of pages to be added to the Book.
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |