net.sf.jomic.comic
Class ConvertComicTask

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

public class ConvertComicTask
extends AbstractTask
implements ProgressChangeListener

Task to convert a comic according to a Conversion.

Author:
Thomas Aglassinger
See Also:
Conversion

Constructor Summary
ConvertComicTask(java.io.File newSourceComic, java.io.File newTargetComic, Conversion newConversion)
           
ConvertComicTask(java.io.File newSourceComic, java.io.File newTargetComic, Conversion newConversion, ConversionReportItem newReportItem)
           
 
Method Summary
 void progressChanged(Task source)
           
 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

ConvertComicTask

public ConvertComicTask(java.io.File newSourceComic,
                        java.io.File newTargetComic,
                        Conversion newConversion,
                        ConversionReportItem newReportItem)

ConvertComicTask

public ConvertComicTask(java.io.File newSourceComic,
                        java.io.File newTargetComic,
                        Conversion newConversion)
Method Detail

progressChanged

public void progressChanged(Task source)
Specified by:
progressChanged in interface ProgressChangeListener

start

public void start()
           throws java.lang.Exception
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.lang.Exception