Ontimize 5.2072EN

com.ontimize.util.swing.printpreview
Class PrintPreviewDialog.WrapperPrintable

java.lang.Object
  extended bycom.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
 
Constructor Summary
PrintPreviewDialog.WrapperPrintable(java.awt.print.Printable printer, java.awt.print.PageFormat pf)
           
 
Method Summary
 int getNumberOfPages()
           
 java.awt.print.PageFormat getPageFormat(int pageIndex)
           
 java.awt.print.Printable getPrintable(int pageIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printer

protected java.awt.print.Printable printer

pf

protected java.awt.print.PageFormat pf
Constructor Detail

PrintPreviewDialog.WrapperPrintable

public PrintPreviewDialog.WrapperPrintable(java.awt.print.Printable printer,
                                           java.awt.print.PageFormat pf)
Method Detail

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

Ontimize