org.openstreetmap.josm.gui.progress
Class SwingRenderingProgressMonitor
java.lang.Object
org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
org.openstreetmap.josm.gui.progress.SwingRenderingProgressMonitor
- All Implemented Interfaces:
- ProgressMonitor
public class SwingRenderingProgressMonitor
- extends AbstractProgressMonitor
SwingRenderingProgressMonitor is progress monitor which delegates the rendering
of progress information to a ProgressRenderer
.
Methods of the progress renderer are always called on the Swing EDT.
Methods inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor |
addCancelListener, appendLogMessage, beginTask, beginTask, cancel, checkState, childFinished, childSetCustomText, childSetIntermediate, childSetProgress, childSetTitle, createSubTaskMonitor, finishTask, getTicks, getTicksCount, indeterminateSubTask, invalidate, isCanceled, removeCancelListener, setCustomText, setExtraText, setTicks, setTicksCount, subTask, worked |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROGRESS_BAR_MAX
private static final int PROGRESS_BAR_MAX
- See Also:
- Constant Field Values
currentProgressValue
private int currentProgressValue
delegate
private ProgressRenderer delegate
SwingRenderingProgressMonitor
public SwingRenderingProgressMonitor(ProgressRenderer delegate)
- Parameters:
delegate
- the delegate which renders the progress information. Must not be null.
- Throws:
java.lang.IllegalArgumentException
- thrown if delegate is null
doBeginTask
public void doBeginTask()
- Specified by:
doBeginTask
in class AbstractProgressMonitor
doFinishTask
public void doFinishTask()
- Specified by:
doFinishTask
in class AbstractProgressMonitor
updateProgress
protected void updateProgress(double progressValue)
- Specified by:
updateProgress
in class AbstractProgressMonitor
doSetCustomText
protected void doSetCustomText(java.lang.String title)
- Specified by:
doSetCustomText
in class AbstractProgressMonitor
doSetTitle
protected void doSetTitle(java.lang.String title)
- Specified by:
doSetTitle
in class AbstractProgressMonitor
doSetIntermediate
protected void doSetIntermediate(boolean value)
- Specified by:
doSetIntermediate
in class AbstractProgressMonitor
setProgressTaskId
public void setProgressTaskId(ProgressTaskId taskId)
- Description copied from interface:
ProgressMonitor
- Should be used only by PleaseWaitRunnable. If taskId <> null then "In background" button will be shown
getProgressTaskId
public ProgressTaskId getProgressTaskId()
- Description copied from interface:
ProgressMonitor
- Should be used only by PleaseWaitRunnable
getWindowParent
public java.awt.Component getWindowParent()
- Returns:
- component suitable as parent for dialogs that wants to be shown in front of progress dialog
JOSM