public class Progress_Utility
extends java.lang.Object
This class is based on GPL code written by Santhosh Kumar T. The original code can be found at http://jroller.com/santhosh/entry/show_progress_in_modal_dialog.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class Identifier
|
Constructor and Description |
---|
Progress_Utility() |
Modifier and Type | Method and Description |
---|---|
static Progress_Monitor |
createModalProgressMonitor(java.awt.Component owner,
int total,
boolean indeterminate,
int milliSecondsToWait,
java.lang.String name)
Creates a modal progress dialog and returns the Progress_Monitor that
is the data model for the monitor dialog.
|
public static final java.lang.String ID
public static Progress_Monitor createModalProgressMonitor(java.awt.Component owner, int total, boolean indeterminate, int milliSecondsToWait, java.lang.String name)
owner
- The component the progress dialog should blocktotal
- the total amount of progress to be made - used to set the maximum
scale of the progress barindeterminate
- set to true if the amount of progress is indeterminatemilliSecondsToWait
- number of millseconds to wait before displaying the
progress monitorname
- a string to identify the Progress_MonitorProgress_Monitor
,
Progress_Dialog
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona