Module imagingbook.common
Package imagingbook.common.util.progress
Class ProgressMonitorExample.SlowProcess
java.lang.Object
imagingbook.common.util.progress.ProgressMonitorExample.SlowProcess
- All Implemented Interfaces:
ProgressReporter
- Enclosing class:
- ProgressMonitorExample
The task to be monitored (some slow process).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns a value in [0,1) indicating to which degree this task is complete.void
run()
-
Constructor Details
-
SlowProcess
public SlowProcess()
-
-
Method Details
-
getProgress
Description copied from interface:ProgressReporter
Returns a value in [0,1) indicating to which degree this task is complete.- Specified by:
getProgress
in interfaceProgressReporter
- Returns:
- a value between 0 and 1
-
run
-