com.rapidminer.gui.tools
Class ComponentPrinter

java.lang.Object
  extended by com.rapidminer.gui.tools.ComponentPrinter
All Implemented Interfaces:
java.awt.print.Printable

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

A Printable that can print an arbitrary component. It scales and translates the pages such that the complete component is visible.

Author:
Simon Fischer, Ingo Mierswa

Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
ComponentPrinter(java.awt.Component component)
          The given component should be printed.
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPrinter

public ComponentPrinter(java.awt.Component component)
The given component should be printed.

Method Detail

print

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


Copyright © 2001-2009 by Rapid-I