public class PrinterTask
extends java.lang.Object
implements java.lang.Runnable
The PrinterTask class 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.
| Constructor and Description |
|---|
PrinterTask(PrintHelper printHelper)
Create a new instance of a PrinterTask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the PrinterTask by calling the PrinterJob's cancel() method.
|
void |
run()
Threads Runnable method.
|
public PrinterTask(PrintHelper printHelper)
printHelper - print helper