Class SwingRenderingProgressMonitor
java.lang.Object
org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
org.openstreetmap.josm.gui.progress.swing.SwingRenderingProgressMonitor
- All Implemented Interfaces:
ProgressMonitor
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.- Since:
- 12675 (moved from
gui.progresspackage}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
AbstractProgressMonitor.StateNested classes/interfaces inherited from interface org.openstreetmap.josm.gui.progress.ProgressMonitor
ProgressMonitor.CancelListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final ProgressRendererprivate static final intFields inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
stateFields inherited from interface org.openstreetmap.josm.gui.progress.ProgressMonitor
ALL_TICKS, DEFAULT_TICKS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voiddoSetCustomText(String title) protected voiddoSetIntermediate(boolean value) protected voiddoSetTitle(String title) Returns the task ID of the progress dialog Should be used only by PleaseWaitRunnableReturn the parent windows of progress dialogvoidsetProgressTaskId(ProgressTaskId taskId) Set the task ID of the progress dialog Should be used only by PleaseWaitRunnable.protected voidupdateProgress(double progressValue) Update progress messageMethods 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
-
Field Details
-
PROGRESS_BAR_MAX
- See Also:
-
currentProgressValue
-
delegate
-
-
Constructor Details
-
SwingRenderingProgressMonitor
- Parameters:
delegate- the delegate which renders the progress information. Must not be null.- Throws:
IllegalArgumentException- if delegate is null
-
-
Method Details
-
doBeginTask
- Specified by:
doBeginTaskin classAbstractProgressMonitor
-
doFinishTask
- Specified by:
doFinishTaskin classAbstractProgressMonitor
-
updateProgress
Description copied from class:AbstractProgressMonitorUpdate progress message- Specified by:
updateProgressin classAbstractProgressMonitor- Parameters:
progressValue- The percentage of completion (this and child progress)
-
doSetCustomText
- Specified by:
doSetCustomTextin classAbstractProgressMonitor
-
doSetTitle
- Specified by:
doSetTitlein classAbstractProgressMonitor
-
doSetIntermediate
- Specified by:
doSetIntermediatein classAbstractProgressMonitor
-
setProgressTaskId
Description copied from interface:ProgressMonitorSet the task ID of the progress dialog Should be used only by PleaseWaitRunnable. If taskId<> nullthen "In background" button will be shown- Parameters:
taskId- the task ID
-
getProgressTaskId
Description copied from interface:ProgressMonitorReturns the task ID of the progress dialog Should be used only by PleaseWaitRunnable- Returns:
- the task ID
-
getWindowParent
Description copied from interface:ProgressMonitorReturn the parent windows of progress dialog- Returns:
- component suitable as parent for dialogs that wants to be shown in front of progress dialog
-