ewe.fx.print
Class PrinterJob
java.lang.Object
ewe.fx.print.PrinterJobObject
ewe.fx.print.PrinterJob
- public class PrinterJob
- extends PrinterJobObject
PrinterJob
public PrinterJob()
getPrinterJob
public static PrinterJob getPrinterJob()
- Get a new PrinterJob object. Under some ewe environments (e.g.
under Win32) this will automatically bring up the PrinterSelect
dialog box. If the user cancels the dialog box, getPrinterJob() will return
false.
printDialog
public boolean printDialog(Frame parent)
- This displays the printer select/setup dialog box, which may be a native OS
dialog box.
- Parameters:
parent - The parent Frame - which can be null.
- Returns:
- true if the user pressed OK, false if the user pressed Cancel.
getPrintTask
protected Task getPrintTask(Printable toPrint,
PageFormat format,
PrintOptions po)
- Return a Task object that does the printing.
- Specified by:
getPrintTask in class PrinterJobObject