com.ontimize.util.swing.printpreview
Class PrintPreviewDialog.WrapperPrintable
java.lang.Object
com.ontimize.util.swing.printpreview.PrintPreviewDialog.WrapperPrintable
- All Implemented Interfaces:
- java.awt.print.Pageable
- Enclosing class:
- PrintPreviewDialog
- protected static class PrintPreviewDialog.WrapperPrintable
- extends java.lang.Object
- implements java.awt.print.Pageable
|
Field Summary |
protected java.awt.print.PageFormat |
pf
|
protected java.awt.print.Printable |
printer
|
| 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 |
printer
protected java.awt.print.Printable printer
pf
protected java.awt.print.PageFormat pf
PrintPreviewDialog.WrapperPrintable
public PrintPreviewDialog.WrapperPrintable(java.awt.print.Printable printer,
java.awt.print.PageFormat pf)
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