Interface java.awt.print.Pageable
- Implementing Classes:
- Book
- public interface Pageable
A Pageable implementation represents a set of
pages to be printed. The Pageable object returns
the total number of pages in the set as well as
the a description, a PageContext, for any given
page in the set.
Field Summary
|
static int
|
UNKNOWN_NUMBER_OF_PAGES
If a Pageable implementation does not know
the number of pages in its set, then this
constant should be returned from the
getNumberOfPages() method.
|
Method Summary
|
int
|
getNumberOfPages()
Returns the number of pages in the set.
|
PageContext
|
getPage(int pageIndex)
Returns a description of the page with
the zero based index of 'pageIndex'.
|
UNKNOWN_NUMBER_OF_PAGES
public static final int UNKNOWN_NUMBER_OF_PAGES
- If a Pageable implementation does not know
the number of pages in its set, then this
constant should be returned from the
getNumberOfPages() method.
getNumberOfPages
public int getNumberOfPages()
- Returns the number of pages in the set.
To enable advanced printing features,
it is recommended that Pageable implementations
return the true number of pages rather than the
UNKNOWN_NUMBER_OF_PAGES constant.
getPage
public PageContext getPage(int pageIndex) throws IndexOutOfBoundsException
- Returns a description of the page with
the zero based index of 'pageIndex'.
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.