Changeset 12391 in josm for trunk/src/org/openstreetmap/josm/gui/MapStatus.java
- Timestamp:
- 2017-06-11T13:57:28+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r12065 r12391 154 154 } 155 155 156 /** 157 * The progress monitor that is used to display the progress if the user selects to run in background 158 */ 156 159 public class BackgroundProgressMonitor implements ProgressMonitorDialog { 157 160 … … 225 228 private final JProgressBar progressBar = new JProgressBar(); 226 229 private final transient ComponentAdapter mvComponentAdapter; 230 /** 231 * The progress monitor for displaying a background progress 232 */ 227 233 public final transient BackgroundProgressMonitor progressMonitor = new BackgroundProgressMonitor(); 228 234 … … 971 977 } 972 978 979 /** 980 * Gets the panel that displays the angle 981 * @return The angle panel 982 */ 973 983 public JPanel getAnglePanel() { 974 984 return angleText; … … 986 996 } 987 997 988 public void setHelpText(String t) { 989 setHelpText(null, t); 990 } 991 998 /** 999 * Sets the help text in the status panel 1000 * @param text The text 1001 */ 1002 public void setHelpText(String text) { 1003 setHelpText(null, text); 1004 } 1005 1006 /** 1007 * Sets the help status text to display 1008 * @param id The object that caused the status update (or a id object it selects). May be <code>null</code> 1009 * @param text The text 1010 */ 992 1011 public void setHelpText(Object id, final String text) { 993 994 1012 StatusTextHistory entry = new StatusTextHistory(id, text); 995 1013 … … 1003 1021 } 1004 1022 1023 /** 1024 * Removes a help text and restores the previous one 1025 * @param id The id passed to {@link #setHelpText(Object, String)} 1026 */ 1005 1027 public void resetHelpText(Object id) { 1006 1028 if (statusText.isEmpty()) … … 1019 1041 } 1020 1042 1043 /** 1044 * Sets the angle to display in the angle panel 1045 * @param a The angle 1046 */ 1021 1047 public void setAngle(double a) { 1022 1048 angleText.setText(a < 0 ? "--" : DECIMAL_FORMAT.format(a) + " \u00B0"); 1023 1049 } 1024 1050 1051 /** 1052 * Sets the heading to display in the heading panel 1053 * @param h The heading 1054 */ 1025 1055 public void setHeading(double h) { 1026 1056 headingText.setText(h < 0 ? "--" : DECIMAL_FORMAT.format(h) + " \u00B0");
Note:
See TracChangeset
for help on using the changeset viewer.