Ignore:
Timestamp:
2015-07-02T21:43:31+02:00 (9 years ago)
Author:
nokutu
Message:

Code cleaned and commented

Location:
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java

    r31328 r31334  
    3434 *
    3535 * @author nokutu
     36 * @see MapillaryFilterChooseSigns
    3637 *
    3738 */
     
    6364            .getInstance();
    6465
     66    /** The list of sign names */
    6567    private final String[] SIGN_TAGS = { "prohibitory_speed_limit",
    6668            "priority_stop", "other_give_way", "mandatory_roundabout",
     
    7173            "danger_pedestrian_crossing", "prohibitory_no_u_turn",
    7274            "prohibitory_noturn" };
     75    /** The the {@link JCheckBox} where the respective tag should be searched */
    7376    private final JCheckBox[] SIGN_CHECKBOXES = { signFilter.maxspeed,
    7477            signFilter.stop, signFilter.giveWay, signFilter.roundabout,
     
    134137    }
    135138
     139    /**
     140     * Resets the dialog to its default state.
     141     */
    136142    public void reset() {
    137143        imported.setSelected(true);
     
    144150    }
    145151
     152    /**
     153     * Applies the selected filter.
     154     */
    146155    public synchronized void refresh() {
    147156        boolean imported = this.imported.isSelected();
     
    202211    }
    203212
     213    /**
     214     * Checks if the image fulfills the sign conditions.
     215     *
     216     * @param img
     217     *            The {@link MapillaryAbstractImage} object that is going to be
     218     *            checked.
     219     * @return {@code true} if it fulfills the conditions; {@code false}
     220     *         otherwise.
     221     */
    204222    private boolean checkSigns(MapillaryImage img) {
    205223        for (int i = 0; i < SIGN_TAGS.length; i++) {
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryHistoryDialog.java

    r31331 r31334  
    3131
    3232/**
    33  * Toggle dialog that shows you the latest commands done and allows the user to
     33 * Toggle dialog that shows you the latest {@link MapillaryCommand} done and allows the user to
    3434 * revert them.
    3535 *
    3636 * @see MapillaryRecord
     37 * @see MapillaryCommand
    3738 * @author nokutu
    3839 *
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryImageDisplay.java

    r31333 r31334  
    478478    }
    479479
     480    /**
     481     * Zooms to 1:1 and, if it is already in 1:1, to best fit.
     482     */
    480483    public void zoomBestFitOrOne() {
    481484        Image image;
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java

    r31333 r31334  
    214214    }
    215215
     216    /**
     217     * Updates the title of the dialog.
     218     */
    216219    public synchronized void updateTitle() {
    217220        if (!SwingUtilities.isEventDispatchThread()) {
Note: See TracChangeset for help on using the changeset viewer.