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

Interface java.awt.print.PageContext

Implementing Classes:
Book.BookPageContext, ProxyGraphics2D

public interface PageContext
A PageContext implementation provides information about a page that is part of a PrinterJob. The PageContext provides the painter, a Printable implementation, as well as the format of a page.


Method Summary
PageFormat  getPageFormat()
Return the format of the page being drawn.
int  getPageIndex()
Return the index of the page being drawn.
String  getPageName()
Return the name of the given page.
Printable  getPagePainter()
Return the object that paints the image on the page.
 

Method Detail

getPagePainter

public Printable getPagePainter()
Return the object that paints the image on the page.

getPageFormat

public PageFormat getPageFormat()
Return the format of the page being drawn.

getPageName

public String getPageName()
Return the name of the given page. This name might simply be the page's index plus 1 returned as a String or it might be something like "iii" or "Table of Contents".

getPageIndex

public int getPageIndex()
Return the index of the page being drawn.

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.