Package chemaxon.core.util
Interface ProgressMonitor
- All Known Subinterfaces:
MProgressMonitor
Simple progress monitor interface.
-
Method Summary
-
Method Details
-
init
default void init(int max) Initializes progress monitoring. Resets progress if it was set before.- Parameters:
max- the maximum progress value
-
init
Initializes progress monitoring. Resets progress if it was set before.- Parameters:
note- optional note that describes the process (e.g. to display in a dialog)max- maximum progress value
-
setValue
void setValue(int value) Sets the current progress value. It must be between 0 andgetMaximum().- Parameters:
value- the current progress value
-
getMaximum
int getMaximum()Gets the maximum progress value.- Returns:
- the maximum progress value
-
isCanceled
default boolean isCanceled()Tests whether the user canceled the progress. The default implementation returnsfalse.- Returns:
- true if the progress is canceled, false otherwise
-