java.lang.Object
java.util.Observable
de.grogra.video.util.ProgressObservable
de.grogra.video.util.Job
de.grogra.video.interpolation.InterpolationJob
- All Implemented Interfaces:
Observer
The
InterpolationJob
encapsulates the interpolation of images into a
Job
in order to be processed by a Worker
.- Author:
- Dominick Leppich
-
Constructor Summary
ConstructorsConstructorDescriptionInterpolationJob
(InterpolationStrategy strategy, ImageSequenceView view, ImageSequenceControl control, int count, int startIndex, int endIndex) Create a newInterpolationJob
defining theInterpolationStrategy
, providingImageSequenceView
andImageSequenceControl
to theImageSequence
, the number of images to compute between two images and the start and end index of the sequence where the interpolation should be applied. -
Method Summary
Modifier and TypeMethodDescriptionvoid
process()
ThisJob.process()
method defines the work, theJob
consists of.void
update
(Observable arg0, Object arg1) Pass the progress to theJob
class.Methods inherited from class de.grogra.video.util.ProgressObservable
setProgress
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
InterpolationJob
public InterpolationJob(InterpolationStrategy strategy, ImageSequenceView view, ImageSequenceControl control, int count, int startIndex, int endIndex) Create a newInterpolationJob
defining theInterpolationStrategy
, providingImageSequenceView
andImageSequenceControl
to theImageSequence
, the number of images to compute between two images and the start and end index of the sequence where the interpolation should be applied.- Parameters:
strategy
- -InterpolationStrategy
view
- -ImageSequenceView
control
- -ImageSequenceControl
count
- - Number of images to compute between two imagesstartIndex
- - Index of the unmodifiedImageSequence
where the interpolation should startendIndex
- - Index of the unmodifiedImageSequence
where the interpolation should end
-
-
Method Details
-
process
Description copied from class:Job
ThisJob.process()
method defines the work, theJob
consists of.- Specified by:
process
in classJob
- Throws:
IOException
- if anIOException
occurs during job processing
-
update
Pass the progress to theJob
class.
-