lib
Class PrintUtilities

java.lang.Object
  extended by 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

Field Summary
private  java.awt.Component componentToBePrinted
           
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintUtilities(java.awt.Component componentToBePrinted)
           
 
Method Summary
static void disableDoubleBuffering(java.awt.Component c)
           
static void enableDoubleBuffering(java.awt.Component c)
           
 void print()
           
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
           
static void printComponent(java.awt.Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentToBePrinted

private java.awt.Component componentToBePrinted
Constructor Detail

PrintUtilities

public PrintUtilities(java.awt.Component componentToBePrinted)
Method Detail

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)