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
PageFormat and Printable for a specified page.
java.awt.print.PageFormat , java.awt.print.Printable
| Modifier and Type | Field and Description |
|---|---|
| public static final int | UNKNOWN_NUMBER_OF_PAGES
This constant is returned from the
|
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of pages in thisPageable.Returns the number of pages in the set. |
| public PageFormat | Returns: thePageFormat describing the size and
orientation.the zero based index of the page whose
pageIndex)PageFormat is being requestedReturns the |
| public Printable | Returns: thePrintable that renders the page.the zero based index of the page whose
pageIndex)Printable is being requestedReturns the |
| UNKNOWN_NUMBER_OF_PAGES | back to summary |
|---|---|
| public static final int UNKNOWN_NUMBER_OF_PAGES This constant is returned from the
| |
| getNumberOfPages | back to summary |
|---|---|
| public int getNumberOfPages() Returns the number of pages in the set.
To enable advanced printing features,
it is recommended that
| |
| getPageFormat | back to summary |
|---|---|
| public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException Returns the
| |
| getPrintable | back to summary |
|---|---|
| public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException Returns the
| |