Package chemaxon.common.util
Interface MProgressMonitor
Progress monitor interface.
Supports multiple-level progress monitors.
- Since:
- Marvin 4.0, 07/12/2005
-
Method Summary
Modifier and TypeMethodDescriptiongetChild()Gets the child of this progress monitor.intgetLevel()Gets the level of this progress monitor.intGets the maximum value.voidinitProgressMonitor(String note, int min, int max) Create a progress monitor.booleanTests whether the user canceled the dialog.booleanTests whether the dialog is visible.Creates new monitor with same parent, message, levels.voidsetMaximum(int v) Gets the maximum value.booleansetProgressValue(int x) Set progress.
-
Method Details
-
initProgressMonitor
Create a progress monitor.- Parameters:
note- text to appear in the dialogmin- initial progress valuemax- final progress value
-
setProgressValue
boolean setProgressValue(int x) Set progress.- Parameters:
x- the current progress value- Returns:
- true if progressing fine, false if canceled
-
getMaximum
int getMaximum()Gets the maximum value.- Returns:
- the maximum value
-
setMaximum
void setMaximum(int v) Gets the maximum value.- Parameters:
v- the maximum value
-
isCanceled
boolean isCanceled()Tests whether the user canceled the dialog.- Returns:
- true if the progress dialog is canceled, false otherwise
-
getChild
MProgressMonitor getChild()Gets the child of this progress monitor.- Returns:
- the child or null
-
getLevel
int getLevel()Gets the level of this progress monitor.- Returns:
- the level
-
isDialogVisible
boolean isDialogVisible()Tests whether the dialog is visible.- Returns:
- true if the progress dialog is visible, false otherwise
-
newInstance
MProgressMonitor newInstance()Creates new monitor with same parent, message, levels.- Returns:
- the new progress monitor
-