Class BookCreator

java.lang.Object
  extended by BookCreator

public class BookCreator
extends java.lang.Object

Creates a Book with the Printables. This is not necessary because the whole printjob could be handled in the Printable-class. But if you use a Book (Book extends Pageable) you can choose the pages that should be printed in the print-dialog.

Version:
07.08.2007
Author:
Marc Seidemann

Constructor Summary
BookCreator(javax.swing.text.StyledDocument d, java.awt.print.PageFormat p, int fontsize)
          Creates a BookCreator-object
 
Method Summary
 void createBook()
          Creates a Book-object with all Printables
 java.awt.print.Book getBook()
          Returns the Book with the Printables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookCreator

BookCreator(javax.swing.text.StyledDocument d,
            java.awt.print.PageFormat p,
            int fontsize)
Creates a BookCreator-object

Parameters:
d - The StyledDocument that should be printed
p - The PageFormat of the print
fontsize - The fontsize of the print
Method Detail

createBook

public void createBook()
Creates a Book-object with all Printables


getBook

public java.awt.print.Book getBook()
Returns the Book with the Printables

Returns:
The Book