Package Acquisition.sud
Class SudAudioFile.SudMapWorker
java.lang.Object
Acquisition.sud.SudAudioFile.SudMapWorker
- All Implemented Interfaces:
PamWorkWrapper<AudioInputStream>
- Enclosing class:
SudAudioFile
Opens an sud file on a different thread and adds a listener for a mapping.
This allows a callback to show map progress.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isDone()
runBackgroundTask
(PamWorker<AudioInputStream> pamWorker) Run the background task which is in it's own threadvoid
taskFinished
(AudioInputStream result) Called when the background task completes.
-
Constructor Details
-
SudMapWorker
-
-
Method Details
-
getSudFile
-
getSudAudioStream
-
runBackgroundTask
Description copied from interface:PamWorkWrapper
Run the background task which is in it's own thread- Specified by:
runBackgroundTask
in interfacePamWorkWrapper<AudioInputStream>
- Parameters:
pamWorker
- reference to the main worker manager. Make repeated calls to pamWorker.update to update progress in the dialog- Returns:
- the value which will be passed to taskFinished
-
taskFinished
Description copied from interface:PamWorkWrapper
Called when the background task completes.- Specified by:
taskFinished
in interfacePamWorkWrapper<AudioInputStream>
- Parameters:
result
- result returned by runBackgroundTask or null if an exception occurred.
-
isDone
public boolean isDone()
-