org.icepdf.ri.common
Class PrinterTask

java.lang.Object
  extended by org.icepdf.ri.common.PrinterTask
All Implemented Interfaces:
java.lang.Runnable

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.

Since:
2.0

Constructor Summary
PrinterTask(PrintHelper printHelper)
          Create a new instance of a PrinterTask.
 
Method Summary
 void cancel()
          Cancel the PrinterTask by calling the PrinterJob's cancel() method.
 void run()
          Threads Runnable method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterTask

public PrinterTask(PrintHelper printHelper)
Create a new instance of a PrinterTask.

Parameters:
printHelper - print helper
Method Detail

run

public void run()
Threads Runnable method.

Specified by:
run in interface java.lang.Runnable

cancel

public void cancel()
Cancel the PrinterTask by calling the PrinterJob's cancel() method.