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

Class java.awt.print.Book.BookPageContext

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

protected class Book.BookPageContext
extends Object
implements PageContext
The BookPageContext inner class describes an individual page in a Book.


Constructor Summary
 Book.BookPageContext(Book this$0, PageFormat format, Printable painter, int pageIndex)
A new instance where 'format' describes the page's size and orientation and 'painter' is the instance that will draw the page's graphics.
 

Method Summary
PageFormat  getPageFormat()
Return the format of the page.
int  getPageIndex()
Return this page's index.
String  getPageName()
Return the name of the given page.
Printable  getPagePainter()
Return the instance that paints the page.
void  set(PageFormat format, Printable painter)
Set the paper size and orientation, 'format', as well as the instance that will draw the page, 'painter'.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Book.BookPageContext

protected Book.BookPageContext(Book this$0,
                               PageFormat format,
                               Printable painter,
                               int pageIndex)
A new instance where 'format' describes the page's size and orientation and 'painter' is the instance that will draw the page's graphics.
Method Detail

set

protected void set(PageFormat format,
                   Printable painter)
Set the paper size and orientation, 'format', as well as the instance that will draw the page, 'painter'.

getPagePainter

public Printable getPagePainter()
Return the instance that paints the page.
Implements:
getPagePainter in interface PageContext

getPageFormat

public PageFormat getPageFormat()
Return the format of the page.
Implements:
getPageFormat in interface PageContext

getPageName

public String getPageName()
Return the name of the given page. This is simply the page index plus 1 converted to a String.
Implements:
getPageName in interface PageContext

getPageIndex

public int getPageIndex()
Return this page's index.
Implements:
getPageIndex in interface PageContext

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.