org.rapla.components.iolayer
Class ComponentPrinter

java.lang.Object
  extended by org.rapla.components.iolayer.ComponentPrinter
All Implemented Interfaces:
Printable

public class ComponentPrinter
extends Object
implements Printable

Use this to print an awt-Component on one page.


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
ComponentPrinter(Component c, boolean scaleToFit)
           
 
Method Summary
 int print(Graphics g, PageFormat format, int pagenumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPrinter

public ComponentPrinter(Component c,
                        boolean scaleToFit)
Method Detail

print

public int print(Graphics g,
                 PageFormat format,
                 int pagenumber)
          throws PrinterException
Specified by:
print in interface Printable
Throws:
PrinterException


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.