001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.download;
003
004import org.openstreetmap.josm.data.Bounds;
005
006/**
007 * A mean to select a download area in the download dialog.
008 * Currently each selector implementation is accessible through its dedicated tab.
009 * @since 2344
010 */
011public interface DownloadSelection {
012
013    /**
014     * Add the GUI elements to the dialog.
015     * @param gui download dialog
016     */
017    void addGui(DownloadDialog gui);
018
019    /**
020     * Sets the current download area. The area may be null to clear
021     * the current download area.
022     *
023     * @param area the current download area
024     */
025    void setDownloadArea(Bounds area);
026}