org.herac.tuxguitar.gui.printer
Class PrintableImpl

java.lang.Object
  extended by org.herac.tuxguitar.gui.printer.PrintableImpl
All Implemented Interfaces:
java.awt.print.Printable

public class PrintableImpl
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
PrintableImpl(PrintDocument document)
           
 
Method Summary
 PrintDocument getPrintDocument()
           
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintableImpl

public PrintableImpl(PrintDocument document)
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

getPrintDocument

public PrintDocument getPrintDocument()