clickDetector.offlineFuncs
Class BatchFileConversion.ConversionWorker

java.lang.Object
  extended by javax.swing.SwingWorker<java.lang.Integer,BatchFileConversion.ConversionProgress>
      extended by clickDetector.offlineFuncs.BatchFileConversion.ConversionWorker
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Integer>, java.util.concurrent.RunnableFuture<java.lang.Integer>
Enclosing class:
BatchFileConversion

 class BatchFileConversion.ConversionWorker
extends javax.swing.SwingWorker<java.lang.Integer,BatchFileConversion.ConversionProgress>


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
private  java.util.ArrayList<java.io.File> clickFiles
           
private  PamFileFilter clkFileFilter
           
 
Constructor Summary
BatchFileConversion.ConversionWorker()
           
 
Method Summary
private  void addFilesToList(java.io.File fileFolder)
           
protected  java.lang.Integer doInBackground()
           
protected  void done()
           
protected  void process(java.util.List<BatchFileConversion.ConversionProgress> chunks)
           
private  boolean processFile(int iFile)
           
private  boolean processFileSection(RainbowFile rainbowFile, java.io.File clickFile, int iFile, int iSection)
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clickFiles

private java.util.ArrayList<java.io.File> clickFiles

clkFileFilter

private PamFileFilter clkFileFilter
Constructor Detail

BatchFileConversion.ConversionWorker

BatchFileConversion.ConversionWorker()
Method Detail

doInBackground

protected java.lang.Integer doInBackground()
                                    throws java.lang.Exception
Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.Integer,BatchFileConversion.ConversionProgress>
Throws:
java.lang.Exception

processFile

private boolean processFile(int iFile)

processFileSection

private boolean processFileSection(RainbowFile rainbowFile,
                                   java.io.File clickFile,
                                   int iFile,
                                   int iSection)

addFilesToList

private void addFilesToList(java.io.File fileFolder)

done

protected void done()
Overrides:
done in class javax.swing.SwingWorker<java.lang.Integer,BatchFileConversion.ConversionProgress>

process

protected void process(java.util.List<BatchFileConversion.ConversionProgress> chunks)
Overrides:
process in class javax.swing.SwingWorker<java.lang.Integer,BatchFileConversion.ConversionProgress>