net.sf.jomic.comic
Class ConvertImageTask
java.lang.Object
net.sf.jomic.tools.AbstractTask
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertImageTask
public ConvertImageTask(File newSourceImageFile,
File newTargetImageFile,
Conversion newConversion)
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 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:
IOException