org.openstreetmap.josm.plugins.streetside.cubemap

## Class TileDownloadingTask

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.cubemap.TileDownloadingTask

- All Implemented Interfaces:
    Callable<String>

      public class TileDownloadingTask
      extends Object
      implements Callable<String>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private StreetsideCache` | `cache`
    `(package private) boolean` | `cancelled`
    `protected CubemapBuilder` | `cb`
    `private List<ITileDownloadingTaskListener>` | `listeners` Listeners of the class.
    `private long` | `startTime`
    `private String` | `tileId`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TileDownloadingTask(String id)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addListener(ITileDownloadingTaskListener lis)` Adds a new listener.
    `String` | `call()`
    `private void` | `fireTileAdded(String id)`
    `StreetsideCache` | `getCache()`
    `CubemapBuilder` | `getCb()`
    `String` | `getId()`
    `void` | `setCache(StreetsideCache cache)`
    `void` | `setCancelled(boolean cancelled)`
    `void` | `setCb(CubemapBuilder cb)`
    `void` | `setId(String id)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### tileId

          private String tileId

    - #### startTime

          private final long startTime

    - #### cache

          private StreetsideCache cache

    - #### cb

          protected CubemapBuilder cb

    - #### listeners

          private final List<ITileDownloadingTaskListener> listeners

      Listeners of the class.

    - #### cancelled

          boolean cancelled

  - ### Constructor Detail

    - #### TileDownloadingTask

          public TileDownloadingTask(String id)

  - ### Method Detail

    - #### addListener

          public final void addListener(ITileDownloadingTaskListener lis)

      Adds a new listener.
      Parameters:
        `lis` - Listener to be added.

    - #### getId

          public String getId()

      Returns:
        the tileId

    - #### setId

          public void setId(String id)

      Parameters:
        `id` - the tileId to set

    - #### getCache

          public StreetsideCache getCache()

      Returns:
        the cache

    - #### setCache

          public void setCache(StreetsideCache cache)

      Parameters:
        `cache` - the cache to set

    - #### getCb

          public CubemapBuilder getCb()

      Returns:
        the cb

    - #### setCb

          public void setCb(CubemapBuilder cb)

      Parameters:
        `cb` - the cb to set

    - #### setCancelled

          public void setCancelled(boolean cancelled)

      Parameters:
        `cancelled` - the cancelled to set

    - #### call

          public String call()
                      throws Exception

      Specified by:
        `call` in interface `Callable<String>`
      Throws:
        `Exception`

    - #### fireTileAdded

          private void fireTileAdded(String id)

JOSM Plugins