- java.lang.Object
-
- org.icepdf.ri.common.print.PrinterTask
-
- All Implemented Interfaces:
Runnable
public class PrinterTask extends Object implements Runnable
The
PrinterTaskclass is responsible for starting a PrinterJob's print function in a new thread. This class assumes that the PrinterJob is pre-configured and ready for its print() method to be called.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PrinterTask(PrintHelper printHelper, SwingController controller)Create a new instance of a PrinterTask.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel the PrinterTask by calling the PrinterJob's cancel() method.voidrun()Threads Runnable method.
-
-
-
Constructor Detail
-
PrinterTask
public PrinterTask(PrintHelper printHelper, SwingController controller)
Create a new instance of a PrinterTask.- Parameters:
printHelper- print helper
-
-