org.jscience.physics.nuclear.kinematics.nuclear.gui
Class ComponentPrintable

java.lang.Object
  extended by org.jscience.physics.nuclear.kinematics.nuclear.gui.ComponentPrintable
All Implemented Interfaces:
java.awt.print.Printable

public class ComponentPrintable
extends java.lang.Object
implements java.awt.print.Printable

Class copied from "Java 2D Graphics" by J. Knudsen, wraps AWT & Swing Componenents in order to render them on a printer.


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
ComponentPrintable(java.awt.Component c)
          Creates new ComponentPrintable
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPrintable

public ComponentPrintable(java.awt.Component c)
Creates new ComponentPrintable

Method Detail

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
DOCUMENT ME!

Specified by:
print in interface java.awt.print.Printable
Parameters:
g - DOCUMENT ME!
pageFormat - DOCUMENT ME!
pageIndex - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.awt.print.PrinterException