Home » openjdk-7 » java » awt » print » [javadoc | source]
java.awt.print
public class: Book [javadoc | source]
java.lang.Object
   java.awt.print.Book

All Implemented Interfaces:
    Pageable

The Book class provides a representation of a document in which pages may have different page formats and page painters. This class uses the Pageable interface to interact with a PrinterJob .
Constructor:
 public Book() 
Method from java.awt.print.Book Summary:
append,   append,   getNumberOfPages,   getPageFormat,   getPrintable,   setPage
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.print.Book Detail:
 public  void append(Printable painter,
    PageFormat page) 
    Appends a single page to the end of this Book.
 public  void append(Printable painter,
    PageFormat page,
    int numPages) 
    Appends numPages pages to the end of this Book. Each of the pages is associated with page.
 public int getNumberOfPages() 
    Returns the number of pages in this Book.
 public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException 
    Returns the PageFormat of the page specified by pageIndex.
 public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException 
    Returns the Printable instance responsible for rendering the page specified by pageIndex.
 public  void setPage(int pageIndex,
    Printable painter,
    PageFormat page) throws IndexOutOfBoundsException 
    Sets the PageFormat and the Painter for a specified page number.