Interface IDownloadSourceType
- All Known Implementing Classes:
OSMDownloadSource.GpsDataDownloadType,OSMDownloadSource.NotesDataDownloadType,OSMDownloadSource.OsmDataDownloadType
public interface IDownloadSourceType
An interface to allow arbitrary download sources and types in the primary
download window of JOSM
- Since:
- 16503
-
Method Summary
Modifier and TypeMethodDescriptionReturns the boolean property for this particular download type.default JCheckBoxReturns the checkbox to be added to the UI.getCheckBox(ChangeListener checkboxChangeListener) Returns the checkbox to be added to the UI.Class<? extends AbstractDownloadTask<?>>Returns the download task class which will be getting the data.default IcongetIcon()Returns the icon to be added to the UI.booleanisDownloadAreaTooLarge(Bounds bound) Check if the area is too large for the current IDownloadSourceTypedefault booleanDetermines the last state of the download type.
-
Method Details
-
getCheckBox
Returns the checkbox to be added to the UI.- Returns:
- The checkbox to be added to the UI
-
getCheckBox
Returns the checkbox to be added to the UI.- Parameters:
checkboxChangeListener- The listener for checkboxes (may benull)- Returns:
- The checkbox to be added to the UI
-
getIcon
Returns the icon to be added to the UI.- Returns:
- The icon to be added to the UI
-
getDownloadClass
Class<? extends AbstractDownloadTask<?>> getDownloadClass()Returns the download task class which will be getting the data.- Returns:
- The
DownloadTaskclass which will be getting the data
-
isEnabled
Determines the last state of the download type.- Returns:
- The boolean indicating the last state of the download type
-
getBooleanProperty
Returns the boolean property for this particular download type.- Returns:
- The boolean property for this particular download type
-
isDownloadAreaTooLarge
Check if the area is too large for the current IDownloadSourceType- Parameters:
bound- The bound that will be downloaded- Returns:
trueif we definitely cannot download the area;
-