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 newInterpolationJobdefining theInterpolationStrategy, providingImageSequenceViewandImageSequenceControlto 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 TypeMethodDescriptionvoidprocess()ThisJob.process()method defines the work, theJobconsists of.voidupdate(Observable arg0, Object arg1) Pass the progress to theJobclass.Methods inherited from class de.grogra.video.util.ProgressObservable
setProgressMethods 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 newInterpolationJobdefining theInterpolationStrategy, providingImageSequenceViewandImageSequenceControlto 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- -InterpolationStrategyview- -ImageSequenceViewcontrol- -ImageSequenceControlcount- - Number of images to compute between two imagesstartIndex- - Index of the unmodifiedImageSequencewhere the interpolation should startendIndex- - Index of the unmodifiedImageSequencewhere the interpolation should end
-
-
Method Details
-
process
Description copied from class:JobThisJob.process()method defines the work, theJobconsists of.- Specified by:
processin classJob- Throws:
IOException- if anIOExceptionoccurs during job processing
-
update
Pass the progress to theJobclass.
-