This class is used by the system and is not necessary for applications development. Pageable and Book are considered high level. A document is a collection of pages in which each page or group of pages may have different formats. This page may be followed by a series of additional pages containing the rest of the letter's text. The Java 2 API supplies the Book class, which is an implementation of Pageable , so that developers don't have to write an implementation from scratch.
Book allows the developer to create an ordered list of document sections.
Book s are used by appending groups of pages to them. A low-level page painter is an object that knows how to render a single kind of page. When the system calls this method on the page painter object, the page painter's implementation will render the page specified by pageIndex , using the page format object pageFormat . Supplied graphics context rendering and component painting are done in exactly the same way. The application doing the printing may use multiple page painters, each of which knows how to render a different kind of page.