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

see #14794 - checkstyle/javadoc

File:
1 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++) {
Note: See TracChangeset for help on using the changeset viewer.