lib
Class PrintUtilities
java.lang.Object
lib.PrintUtilities
- All Implemented Interfaces:
- java.awt.print.Printable
public class PrintUtilities
- extends java.lang.Object
- implements java.awt.print.Printable
This class uses code taken from TheCodeProject.com, please
support open software development by releasing upgrades and
improvements back into the wild.
- Version:
- x.y
- Author:
- Unknown / Multiple Authors
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary |
PrintUtilities(java.awt.Component componentToBePrinted)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentToBePrinted
private java.awt.Component componentToBePrinted
PrintUtilities
public PrintUtilities(java.awt.Component componentToBePrinted)
printComponent
public static void printComponent(java.awt.Component c)
print
public void print()
print
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pageFormat,
int pageIndex)
- Specified by:
print
in interface java.awt.print.Printable
disableDoubleBuffering
public static void disableDoubleBuffering(java.awt.Component c)
enableDoubleBuffering
public static void enableDoubleBuffering(java.awt.Component c)