|
|||||||||
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 | |
---|---|
protected MainImageDisplay |
imageDisplay
The target image display |
protected ProgressPanel |
progressPanel
Panel used to display print progress |
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(ActionEvent e)
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(Graphics g,
PageFormat pf,
int pageIndex)
For the Printable interface: Render the image contents onto a printable graphics context. |
void |
startPrint(String msg)
Initialize printing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MainImageDisplay imageDisplay
protected ProgressPanel progressPanel
Constructor Detail |
---|
public ImagePrintDialog(MainImageDisplay imageDisplay)
Method Detail |
---|
public void preview()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void print()
public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException
print
in interface Printable
PrinterException
public void startPrint(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 |