| Modifier and Type | Field and Description |
|---|---|
| private PageFormat | mFormat
The format of all of the pages. |
| private Printable | mPainter
The object that will render all of the pages. |
| Access | Constructor and Description |
|---|---|
| pack-priv | OpenBook(PageFormat format, Printable painter)
Create a Pageable with an unknown number of pages where every page shares the same format and Printable. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getNumberOfPages()
Implements java. This object does not know the number of pages. |
| public PageFormat | Returns: The PageFormat describing the size and orientationThe zero based index of the page whose
PageFormat is being requested. pageIndex)Implements java. Return the PageFormat of the page specified by 'pageIndex'. |
| public Printable | Returns: The Printable that will draw the page.The zero based index of the page whose
Printable is being requested. pageIndex)Implements java. Return the Printable instance responsible for rendering the page specified by 'pageIndex'. |
| mFormat | back to summary |
|---|---|
| private PageFormat mFormat The format of all of the pages. | |
| mPainter | back to summary |
|---|---|
| private Printable mPainter The object that will render all of the pages. | |
| OpenBook | back to summary |
|---|---|
| pack-priv OpenBook(PageFormat format, Printable painter) Create a Pageable with an unknown number of pages where every page shares the same format and Printable. | |
| getNumberOfPages | back to summary |
|---|---|
| public int getNumberOfPages() Implements java. This object does not know the number of pages. | |
| getPageFormat | back to summary |
|---|---|
| public PageFormat getPageFormat(int pageIndex) Implements java. Return the PageFormat of the page specified by 'pageIndex'.
| |
| getPrintable | back to summary |
|---|---|
| public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException Implements java. Return the Printable instance responsible for rendering the page specified by 'pageIndex'.
| |