org.jopendocument.util
Class PrintUtilities

java.lang.Object
  extended by org.jopendocument.util.PrintUtilities
All Implemented Interfaces:
Printable

public class PrintUtilities
extends Object
implements Printable

A simple way to print a component


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

Constructor Detail

PrintUtilities

public PrintUtilities(Component componentToBePrinted)
Method Detail

printComponent

public static void printComponent(Component c)

print

public void print()

print

public int print(Graphics g,
                 PageFormat pageFormat,
                 int pageIndex)
Specified by:
print in interface Printable

disableDoubleBuffering

public static void disableDoubleBuffering(Component c)
Disable double buffering painting of a Component

Parameters:
c - the component

enableDoubleBuffering

public static void enableDoubleBuffering(Component c)
Enable double buffering painting of a Component

Parameters:
c - the component


Copyright © 2010 jOpenDocument All Rights Reserved.