|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Pageable
This interface represents pages that are to be printed.
| Field Summary | |
|---|---|
static int |
UNKNOWN_NUMBER_OF_PAGES
This constant is returned when getNumberOfPages() cannot
determine the number of pages available for printing. |
| Method Summary | |
|---|---|
int |
getNumberOfPages()
This method returns the number of pages this object contains, or UNKNOWN_NUMBER_OF_PAGES if it cannot determine the number
of pages to be printed. |
PageFormat |
getPageFormat(int pageIndex)
This method returns the PageFormat instance for the
specified page. |
Printable |
getPrintable(int pageIndex)
This method returns the Printable instance for the specified
page. |
| Field Detail |
|---|
static final int UNKNOWN_NUMBER_OF_PAGES
getNumberOfPages() cannot
determine the number of pages available for printing.
| Method Detail |
|---|
int getNumberOfPages()
UNKNOWN_NUMBER_OF_PAGES if it cannot determine the number
of pages to be printed.
UNKNOWN_NUMBER_OF_PAGES if this is unknown.
PageFormat getPageFormat(int pageIndex)
throws IndexOutOfBoundsException
PageFormat instance for the
specified page. Page numbers start at zero. An exception is thrown if the
requested page does not exist.
pageIndex - The index of the page to return the
PageFormat for.
PageFormat for the requested page.
IndexOutOfBoundsException - If the requested page number does
not exist.
Printable getPrintable(int pageIndex)
throws IndexOutOfBoundsException
Printable instance for the specified
page. Page numbers start at zero. An exception is thrown if the requested
page does not exist.
pageIndex - The index of the page to return the
Printable for.
Printable for the requested page.
IndexOutOfBoundsException - If the requested page number does
not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||