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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BooleanProperty
getBooleanProperty()
Returns the boolean property for this particular download type.default javax.swing.JCheckBox
getCheckBox()
Returns the checkbox to be added to the UI.javax.swing.JCheckBox
getCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)
Returns the checkbox to be added to the UI.java.lang.Class<? extends AbstractDownloadTask<?>>
getDownloadClass()
Returns the download task class which will be getting the data.default javax.swing.Icon
getIcon()
Returns the icon to be added to the UI.boolean
isDownloadAreaTooLarge(Bounds bound)
Check if the area is too large for the current IDownloadSourceTypedefault boolean
isEnabled()
Determines the last state of the download type.
-
-
-
Method Detail
-
getCheckBox
default javax.swing.JCheckBox getCheckBox()
Returns the checkbox to be added to the UI.- Returns:
- The checkbox to be added to the UI
-
getCheckBox
javax.swing.JCheckBox getCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)
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
default javax.swing.Icon getIcon()
Returns the icon to be added to the UI.- Returns:
- The icon to be added to the UI
-
getDownloadClass
java.lang.Class<? extends AbstractDownloadTask<?>> getDownloadClass()
Returns the download task class which will be getting the data.- Returns:
- The
DownloadTask
class which will be getting the data
-
isEnabled
default boolean isEnabled()
Determines the last state of the download type.- Returns:
- The boolean indicating the last state of the download type
-
getBooleanProperty
BooleanProperty getBooleanProperty()
Returns the boolean property for this particular download type.- Returns:
- The boolean property for this particular download type
-
isDownloadAreaTooLarge
boolean isDownloadAreaTooLarge(Bounds bound)
Check if the area is too large for the current IDownloadSourceType- Parameters:
bound
- The bound that will be downloaded- Returns:
true
if we definitely cannot download the area;
-
-