java.awt.print
Class Book.BookPage

java.lang.Object
  extended byjava.awt.print.Book.BookPage
Enclosing class:
Book

private class Book.BookPage
extends Object

The BookPage inner class describes an individual page in a Book through a PageFormat-Printable pair.


Field Summary
private  PageFormat mFormat
          The size and orientation of the page.
private  Printable mPainter
          The instance that will draw the page.
 
Constructor Summary
(package private) Book.BookPage(Printable painter, PageFormat format)
          A new instance where 'format' describes the page's size and orientation and 'painter' is the instance that will draw the page's graphics.
 
Method Summary
(package private)  PageFormat getPageFormat()
          Return the format of the page.
(package private)  Printable getPrintable()
          Return the instance that paints the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mFormat

private PageFormat mFormat
The size and orientation of the page.


mPainter

private Printable mPainter
The instance that will draw the page.

Constructor Detail

Book.BookPage

Book.BookPage(Printable painter,
              PageFormat format)
A new instance where 'format' describes the page's size and orientation and 'painter' is the instance that will draw the page's graphics.

Throws:
NullPointerException - If the painter or format argument is null
Method Detail

getPrintable

Printable getPrintable()
Return the instance that paints the page.


getPageFormat

PageFormat getPageFormat()
Return the format of the page.