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 TypeMethodDescriptiondoubleReturns a value in [0,1) indicating to which degree this task is complete.voidrun()
-
Constructor Details
-
SlowProcess
public SlowProcess()
-
-
Method Details
-
getProgress
Description copied from interface:ProgressReporterReturns a value in [0,1) indicating to which degree this task is complete.- Specified by:
getProgressin interfaceProgressReporter- Returns:
- a value between 0 and 1
-
run
-