| |
|
| java.awt.print.Pageable
All known Subclasses: java.awt.print.Book,
Method Summary | |
int | getNumberOfPages() Returns the number of pages in the set. | PageFormat | getPageFormat(int pageIndex) Returns the PageFormat of the page specified by
pageIndex . | Printable | getPrintable(int pageIndex) Returns the Printable instance responsible for
rendering the page specified by pageIndex . |
UNKNOWN_NUMBER_OF_PAGES | int UNKNOWN_NUMBER_OF_PAGES(Code) | | This constant is returned from the
Pageable.getNumberOfPages() getNumberOfPages method if a Pageable implementation does not know
the number of pages in its set.
|
getNumberOfPages | int getNumberOfPages()(Code) | | 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.
the number of pages in this Pageable . |
getPageFormat | PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException(Code) | | Returns the PageFormat of the page specified by
pageIndex .
Parameters: pageIndex - the zero based index of the page whosePageFormat is being requested the PageFormat describing the size andorientation. throws: IndexOutOfBoundsException - ifthe Pageable does not contain the requestedpage. |
getPrintable | Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException(Code) | | Returns the Printable instance responsible for
rendering the page specified by pageIndex .
Parameters: pageIndex - the zero based index of the page whosePrintable is being requested the Printable that renders the page. throws: IndexOutOfBoundsException - ifthe Pageable does not contain the requestedpage. |
|
|
|