Class OverpassDownloadSource
java.lang.Object
org.openstreetmap.josm.gui.download.OverpassDownloadSource
- All Implemented Interfaces:
DownloadSource<OverpassDownloadSource.OverpassDownloadData>
public class OverpassDownloadSource
extends Object
implements DownloadSource<OverpassDownloadSource.OverpassDownloadData>
Class defines the way data is fetched from Overpass API.
- Since:
- 12652
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classEncapsulates data that is required to preform download from Overpass API.static classThe GUI representation of the Overpass download source. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOverpass query to retrieve all nodes and related parent objects, -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePanel(DownloadDialog dialog) Creates a panel with GUI specific for the download source.voiddoDownload(OverpassDownloadSource.OverpassDownloadData data, DownloadSettings settings) Downloads the data.getLabel()Returns a string representation of this download source.booleanDefines whether this download source should be visible only in the expert mode.
-
Field Details
-
FULL_DOWNLOAD_QUERY
Overpass query to retrieve all nodes and related parent objects,- See Also:
-
-
Constructor Details
-
OverpassDownloadSource
public OverpassDownloadSource()
-
-
Method Details
-
createPanel
public AbstractDownloadSourcePanel<OverpassDownloadSource.OverpassDownloadData> createPanel(DownloadDialog dialog) Description copied from interface:DownloadSourceCreates a panel with GUI specific for the download source.- Specified by:
createPanelin interfaceDownloadSource<OverpassDownloadSource.OverpassDownloadData>- Parameters:
dialog- the parent download dialog, asDownloadDialog.getInstance()might not be initialized yet- Returns:
- Returns
AbstractDownloadSourcePanel.
-
doDownload
Description copied from interface:DownloadSourceDownloads the data.- Specified by:
doDownloadin interfaceDownloadSource<OverpassDownloadSource.OverpassDownloadData>- Parameters:
data- The required data for the download source.settings- The global settings of the download dialog, seeDownloadDialog.
-
getLabel
Description copied from interface:DownloadSourceReturns a string representation of this download source.- Specified by:
getLabelin interfaceDownloadSource<OverpassDownloadSource.OverpassDownloadData>- Returns:
- A string representation of this download source.
-
onlyExpert
Description copied from interface:DownloadSourceDefines whether this download source should be visible only in the expert mode.- Specified by:
onlyExpertin interfaceDownloadSource<OverpassDownloadSource.OverpassDownloadData>- Returns:
- Returns
trueif the download source should be visible only in the expert mode,falseotherwise.
-