net.sf.jomic.comic
Class ConvertImageTask

java.lang.Object
  extended by net.sf.jomic.tools.AbstractTask
      extended by net.sf.jomic.comic.ConvertImageTask
All Implemented Interfaces:
ProgressChangeListener, Task

public class ConvertImageTask
extends AbstractTask
implements ProgressChangeListener

Task to convert a source image to a target image according to a Conversion.

Author:
Thomas Aglassinger
See Also:
Conversion

Constructor Summary
ConvertImageTask(java.io.File newSourceImageFile, java.io.File newTargetImageFile, Conversion newConversion)
           
 
Method Summary
 void progressChanged(Task source)
          In case the image just needs to be copied, set progress to value from CopyFileTask .
 void start()
          Start the task, which will cause the progress to iterate from 0 to getMaximum.
 
Methods inherited from class net.sf.jomic.tools.AbstractTask
addProgressChangeListener, getMaxProgress, getProgress, getProgressMessage, isInterrupted, removeProgressChangeListener, setMaxProgress, setProgress, setProgressMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertImageTask

public ConvertImageTask(java.io.File newSourceImageFile,
                        java.io.File newTargetImageFile,
                        Conversion newConversion)
Method Detail

progressChanged

public void progressChanged(Task source)
In case the image just needs to be copied, set progress to value from CopyFileTask .

Specified by:
progressChanged in interface ProgressChangeListener
See Also:
CopyFileTask

start

public void start()
           throws java.io.IOException
Description copied from interface: Task
Start the task, which will cause the progress to iterate from 0 to getMaximum.

Specified by:
start in interface Task
Specified by:
start in class AbstractTask
Throws:
java.io.IOException