Ignore:
Timestamp:
2017-06-11T13:57:28+02:00 (7 years ago)
Author:
michael2402
Message:

See #14794: Documentation for the gui package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r12065 r12391  
    154154    }
    155155
     156    /**
     157     * The progress monitor that is used to display the progress if the user selects to run in background
     158     */
    156159    public class BackgroundProgressMonitor implements ProgressMonitorDialog {
    157160
     
    225228    private final JProgressBar progressBar = new JProgressBar();
    226229    private final transient ComponentAdapter mvComponentAdapter;
     230    /**
     231     * The progress monitor for displaying a background progress
     232     */
    227233    public final transient BackgroundProgressMonitor progressMonitor = new BackgroundProgressMonitor();
    228234
     
    971977    }
    972978
     979    /**
     980     * Gets the panel that displays the angle
     981     * @return The angle panel
     982     */
    973983    public JPanel getAnglePanel() {
    974984        return angleText;
     
    986996    }
    987997
    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     */
    9921011    public void setHelpText(Object id, final String text) {
    993 
    9941012        StatusTextHistory entry = new StatusTextHistory(id, text);
    9951013
     
    10031021    }
    10041022
     1023    /**
     1024     * Removes a help text and restores the previous one
     1025     * @param id The id passed to {@link #setHelpText(Object, String)}
     1026     */
    10051027    public void resetHelpText(Object id) {
    10061028        if (statusText.isEmpty())
     
    10191041    }
    10201042
     1043    /**
     1044     * Sets the angle to display in the angle panel
     1045     * @param a The angle
     1046     */
    10211047    public void setAngle(double a) {
    10221048        angleText.setText(a < 0 ? "--" : DECIMAL_FORMAT.format(a) + " \u00B0");
    10231049    }
    10241050
     1051    /**
     1052     * Sets the heading to display in the heading panel
     1053     * @param h The heading
     1054     */
    10251055    public void setHeading(double h) {
    10261056        headingText.setText(h < 0 ? "--" : DECIMAL_FORMAT.format(h) + " \u00B0");
Note: See TracChangeset for help on using the changeset viewer.