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