Last change
on this file since 12675 was 12675, checked in by Don-vip, 7 years ago |
see #15182 - move the Swing-based ProgressMonitor implementations from gui.progress to gui.progress.swing . Progress monitor concept is used in very large parts of JOSM, a console-based implementation could be added later
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.progress;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.gui.progress.swing.SwingRenderingProgressMonitor;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Swing components can implement this interface and use a {@link SwingRenderingProgressMonitor}
|
---|
8 | * to render progress information.
|
---|
9 | */
|
---|
10 | public interface ProgressRenderer {
|
---|
11 | /**
|
---|
12 | * Sets the title to display
|
---|
13 | * @param taskTitle The title text
|
---|
14 | */
|
---|
15 | void setTaskTitle(String taskTitle);
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Sets the custom text below the title
|
---|
19 | * @param message The message
|
---|
20 | */
|
---|
21 | void setCustomText(String message);
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Display the value as indeterminate value (unknown progress)
|
---|
25 | * @param indeterminate <code>true</code> if the progress is unknown
|
---|
26 | */
|
---|
27 | void setIndeterminate(boolean indeterminate);
|
---|
28 |
|
---|
29 | /**
|
---|
30 | * Sets the maximum possible progress
|
---|
31 | * @param maximum The minimum value
|
---|
32 | */
|
---|
33 | void setMaximum(int maximum);
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Sets the current progress
|
---|
37 | * @param value The progress, in range 0...maximum
|
---|
38 | * @see #setMaximum(int)
|
---|
39 | */
|
---|
40 | void setValue(int value);
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.