com.jaxfront.swing.ui
Class SimplePrintableArea

java.lang.Object
  extended by com.jaxfront.swing.ui.SimplePrintableArea
All Implemented Interfaces:
java.awt.print.Printable

public class SimplePrintableArea
extends java.lang.Object
implements java.awt.print.Printable


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
SimplePrintableArea(javax.swing.JComponent printComponent)
           
 
Method Summary
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 int simplePrint(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePrintableArea

public SimplePrintableArea(javax.swing.JComponent printComponent)
Method Detail

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

simplePrint

public int simplePrint(java.awt.Graphics g,
                       java.awt.print.PageFormat pf,
                       int pageIndex)
                throws java.awt.print.PrinterException
Throws:
java.awt.print.PrinterException