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 Details

    • getCheckBox

      Returns the checkbox to be added to the UI.
      Returns:
      The checkbox to be added to the UI
    • getCheckBox

      JCheckBox getCheckBox(ChangeListener checkboxChangeListener)
      Returns the checkbox to be added to the UI.
      Parameters:
      checkboxChangeListener - The listener for checkboxes (may be null)
      Returns:
      The checkbox to be added to the UI
    • getIcon

      default Icon getIcon()
      Returns the icon to be added to the UI.
      Returns:
      The icon to be added to the UI
    • 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

      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:
      true if we definitely cannot download the area;