|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jimmc.swing.ComponentPrintDialog
Field Summary | |
protected java.awt.print.PageFormat |
pageFormat
Our page format. |
protected javax.swing.JPanel |
panel
Our dialog panel. |
protected java.awt.Component |
parent
Our parent. |
protected java.awt.print.PrinterJob |
printerJob
Our PrinterJob. |
protected ResourceSource |
res
Our resource source. |
protected java.awt.Component |
target
The component to print. |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
ComponentPrintDialog(java.awt.Component parent,
ResourceSource res,
java.awt.Component target)
Create our object. |
Method Summary | |
protected javax.swing.JPanel |
buildPanel()
Create our dialog panel. |
void |
print()
Print. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
Print our target component. |
boolean |
printDialog()
Put up the dialog and let the user set his options. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Component parent
protected ResourceSource res
protected java.awt.Component target
protected java.awt.print.PrinterJob printerJob
protected java.awt.print.PageFormat pageFormat
protected javax.swing.JPanel panel
Constructor Detail |
public ComponentPrintDialog(java.awt.Component parent, ResourceSource res, java.awt.Component target)
Method Detail |
protected javax.swing.JPanel buildPanel()
public boolean printDialog()
public void print() throws java.awt.print.PrinterException
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
print
in interface java.awt.print.Printable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |