|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.image.gui.ImagePrintDialog
public class ImagePrintDialog
Displays a print dialog box for printing the current image display and handles the details of printing the image and graphics.
Nested Class Summary | |
---|---|
protected class |
ImagePrintDialog.PrintWorker
Performs all the print calculations in a separate thread. |
Field Summary |
---|
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
ImagePrintDialog(MainImageDisplay imageDisplay)
Initialize with the target image display object. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Called for the Print button in the preview window |
void |
preview()
Display a preview of the image to be printed in a popup window. |
void |
print()
Prints the contents of the current image display image area. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
For the Printable interface: Render the image contents onto a printable graphics context. |
void |
startPrint(java.lang.String msg)
Initialize printing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImagePrintDialog(MainImageDisplay imageDisplay)
Method Detail |
---|
public void preview()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
public void print() throws java.awt.print.PrinterException
java.awt.print.PrinterException
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public void startPrint(java.lang.String msg)
msg
- the message for the progress dialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |