Changeset 12597 in josm


Ignore:
Timestamp:
2017-08-13T14:04:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14794 - checkstyle/javadoc

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
5 edited

Legend:

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

    r8840 r12597  
    2222import org.openstreetmap.josm.tools.ImageProvider;
    2323
     24/**
     25 * Button that allows to choose the imagery source used for slippy map background.
     26 * @since 1390
     27 */
    2428public class SourceButton extends JComponent {
    2529
     
    4549    private final SlippyMapBBoxChooser slippyMapBBoxChooser;
    4650
     51    /**
     52     * Constructs a new {@code SourceButton}.
     53     * @param slippyMapBBoxChooser parent slippy map
     54     * @param sources list of imagery sources to display
     55     */
    4756    public SourceButton(SlippyMapBBoxChooser slippyMapBBoxChooser, Collection<TileSource> sources) {
    4857        this.slippyMapBBoxChooser = slippyMapBBoxChooser;
     
    124133    }
    125134
     135    /**
     136     * Toggle the visibility of imagery source list.
     137     */
    126138    public void toggle() {
    127139        this.isEnlarged = !this.isEnlarged;
     
    131143    }
    132144
     145    /**
     146     * Changes the current imagery source used for slippy map background.
     147     * @param tileSource the new imagery source to use
     148     */
    133149    public void setCurrentMap(TileSource tileSource) {
    134150        for (int i = 0; i < sources.length; i++) {
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadSelection.java

    r10378 r12597  
    44import org.openstreetmap.josm.data.Bounds;
    55
     6/**
     7 * A mean to select a download area in the download dialog.
     8 * Currently each selector implementation is accessible through its dedicated tab.
     9 * @since 2344
     10 */
    611public interface DownloadSelection {
    712
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ColorfulImageProcessor.java

    r12594 r12597  
    66import java.util.Map;
    77
     8import org.openstreetmap.josm.Main;
    89import org.openstreetmap.josm.gui.layer.ImageProcessor;
    910import org.openstreetmap.josm.io.session.SessionAwareReadApply;
     
    6263                setColorfulness(Double.parseDouble(cStr));
    6364            } catch (NumberFormatException e) {
    64                 // nothing
     65                if (Main.isTraceEnabled()) {
     66                    Main.trace(e);
     67                }
    6568            }
    6669        }
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/GammaImageProcessor.java

    r12594 r12597  
    7373                setGamma(Double.parseDouble(cStr));
    7474            } catch (NumberFormatException e) {
    75                 // nothing
     75                if (Main.isTraceEnabled()) {
     76                    Main.trace(e);
     77                }
    7678            }
    7779        }
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/SharpenImageProcessor.java

    r12594 r12597  
    88import java.util.Map;
    99
     10import org.openstreetmap.josm.Main;
    1011import org.openstreetmap.josm.gui.layer.ImageProcessor;
    1112import org.openstreetmap.josm.io.session.SessionAwareReadApply;
     
    99100                setSharpenLevel(Float.parseFloat(vStr));
    100101            } catch (NumberFormatException e) {
    101                 // nothing
     102                if (Main.isTraceEnabled()) {
     103                    Main.trace(e);
     104                }
    102105            }
    103106        }
Note: See TracChangeset for help on using the changeset viewer.