| java.lang.Object edu.rice.cs.drjava.model.print.DrJavaBook
DrJavaBook | public class DrJavaBook implements Pageable(Code) | | The DrJavaBook class is DrJava's implementation of a Pageable object. It
serves as the control class for printing, and is responsible for
preparing the print job of previewing or printing given the String
representation of the document.
version: $Id: DrJavaBook.java 4255 2007-08-28 19:17:37Z mgricken $ |
Constructor Summary | |
public | DrJavaBook(String text, String fileName, PageFormat format) Constructs a DrJavaBook which a given content text, filename, and pageformat. |
Method Summary | |
public int | getNumberOfPages() The number of pages in this print job. | public PageFormat | getPageFormat(int pageIndex) Returns the PageFormat for this print job. | public Printable | getPrintable(int pageIndex) Returns the Printable object for a given page.
Parameters: pageIndex - The page number. |
FOOTER_FONT | final public static Font FOOTER_FONT(Code) | | |
LINE_NUM_WIDTH | public float LINE_NUM_WIDTH(Code) | | |
PRINT_FONT | final public static Font PRINT_FONT(Code) | | |
DrJavaBook | public DrJavaBook(String text, String fileName, PageFormat format)(Code) | | Constructs a DrJavaBook which a given content text, filename, and pageformat.
|
getNumberOfPages | public int getNumberOfPages()(Code) | | The number of pages in this print job. |
getPageFormat | public PageFormat getPageFormat(int pageIndex)(Code) | | Returns the PageFormat for this print job.
Parameters: pageIndex - The page number the PageFormat of this print job. |
getPrintable | public Printable getPrintable(int pageIndex)(Code) | | Returns the Printable object for a given page.
Parameters: pageIndex - The page number. The Printable object for the given page. |
|
|