org.jclarion.clarion.print
Class PageBook
java.lang.Object
org.jclarion.clarion.print.PageBook
- All Implemented Interfaces:
- java.awt.print.Pageable, java.awt.print.Printable
- Direct Known Subclasses:
- QueuePrintBook
public abstract class PageBook
- extends java.lang.Object
- implements java.awt.print.Printable, java.awt.print.Pageable
| Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageBook
public PageBook()
getPageCount
public abstract int getPageCount()
getPage
public abstract Page getPage(int page)
getCachedPDF
public byte[] getCachedPDF()
cachePDF
public void cachePDF(byte[] bytes)
init
public void init()
finish
public void finish()
print
public int print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
throws java.awt.print.PrinterException
- Specified by:
print in interface java.awt.print.Printable
- Throws:
java.awt.print.PrinterException
getNumberOfPages
public int getNumberOfPages()
- Specified by:
getNumberOfPages in interface java.awt.print.Pageable
getPageFormat
public java.awt.print.PageFormat getPageFormat(int pageIndex)
throws java.lang.IndexOutOfBoundsException
- Specified by:
getPageFormat in interface java.awt.print.Pageable
- Throws:
java.lang.IndexOutOfBoundsException
getPrintable
public java.awt.print.Printable getPrintable(int pageIndex)
throws java.lang.IndexOutOfBoundsException
- Specified by:
getPrintable in interface java.awt.print.Pageable
- Throws:
java.lang.IndexOutOfBoundsException
Copyright © 2010. All Rights Reserved.