com.genedavissoftware.printing
Class ComponentPrint

java.lang.Object
  extended bycom.genedavissoftware.printing.GDSPrinting
      extended bycom.genedavissoftware.printing.ComponentPrint

public class ComponentPrint
extends GDSPrinting

Print any Gui item that is a descendant of Component.

I haven't needed this yet, so haven't finished the code in PrintPreview to make it work. Also, I want to add some sort of Interface to implement to allow for the "bigger" and "smaller" buttons to work with Components or be deactivated if the Component does not implement the interface.


Field Summary
 
Fields inherited from class com.genedavissoftware.printing.GDSPrinting
BOTTOM, CENTER, LEFT, RIGHT, TOP
 
Constructor Summary
ComponentPrint()
           
 
Method Summary
 void print(java.awt.Component c)
          Print any Gui item that is a descendant of Component.
 
Methods inherited from class com.genedavissoftware.printing.GDSPrinting
setFooter, setFooterAlignment, setHeader, setHeaderAlignment, setInitialPageNumber, setPageNumberHorizontalAlignment, setPageNumberVerticalAlignment, showFooter, showHeader, showPageNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPrint

public ComponentPrint()
Method Detail

print

public void print(java.awt.Component c)
           throws GDSPrintException
Print any Gui item that is a descendant of Component. The print is based off the paint method of the Component.

Throws:
GDSPrintException






SourceForge.net Logo