public class PlaceNameLayerBulkDownloader extends BulkRetrievalThread
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
PlaceNameLayerBulkDownloader.BulkDownloadPostProcessor  | 
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description | 
|---|---|
protected static long | 
AVG_TILE_SIZE  | 
protected PlaceNameLayer | 
layer  | 
protected int | 
MAX_TILE_COUNT_PER_REGION  | 
protected ArrayList<PlaceNameLayer.Tile> | 
missingTiles  | 
protected long | 
pollDelay  | 
fileStore, progress, resolution, retrievable, RETRIEVAL_SERVICE_POLL_DELAY, retrievalListeners, sectorMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description | 
|---|
PlaceNameLayerBulkDownloader(PlaceNameLayer layer,
                            Sector sector,
                            double resolution,
                            BulkRetrievalListener listener)
Constructs a downloader to retrieve placenames not currently available in the World Wind file cache. 
 | 
PlaceNameLayerBulkDownloader(PlaceNameLayer layer,
                            Sector sector,
                            double resolution,
                            FileStore fileStore,
                            BulkRetrievalListener listener)
Constructs a downloader to retrieve placenames not currently available in a specified file store and places it
 there. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
callRetrievalListeners(Retriever retriever,
                      PlaceNameLayer.Tile tile)  | 
protected int | 
estimateNumberTilesinSector(PlaceNameLayer.NavigationTile tile,
                           Sector searchSector)  | 
protected long | 
getEstimatedMissingDataSize()  | 
protected int | 
getMissingTilesCountEstimate(Sector sector,
                            double resolution)  | 
protected ArrayList<PlaceNameLayer.Tile> | 
getMissingTilesInSector(Sector sector)  | 
protected boolean | 
isTileLocalOrAbsent(PlaceNameLayer.Tile tile)  | 
protected List<PlaceNameLayer.NavigationTile> | 
navTilesVisible(PlaceNameLayer.NavigationTile tile,
               Sector sector)  | 
protected void | 
removeRetrievedTile(PlaceNameLayer.Tile tile)  | 
void | 
run()  | 
protected void | 
submitMissingTilesRequests()  | 
protected void | 
transferMissingTiles(ArrayList<PlaceNameLayer.Tile> source,
                    ArrayList<PlaceNameLayer.Tile> destination,
                    int maxCount)  | 
addRetrievalListener, callRetrievalListeners, getFileStore, getProgress, getResolution, getRetrievable, getSector, hasRetrievalListeners, removeRetrievalListeneractiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected static final long AVG_TILE_SIZE
protected final PlaceNameLayer layer
protected int MAX_TILE_COUNT_PER_REGION
protected ArrayList<PlaceNameLayer.Tile> missingTiles
protected long pollDelay
public PlaceNameLayerBulkDownloader(PlaceNameLayer layer, Sector sector, double resolution, BulkRetrievalListener listener)
layer - the layer for which to download placenames.sector - the sector to download data for. This value is final.resolution - the target resolution, provided in radians of latitude per texel. This value is final.listener - an optional retrieval listener. May be null.IllegalArgumentException - if either the layer or sector are null, or the resolution is less than zero.public PlaceNameLayerBulkDownloader(PlaceNameLayer layer, Sector sector, double resolution, FileStore fileStore, BulkRetrievalListener listener)
layer - the layer for which to download placenames.sector - the sector to download data for. This value is final.resolution - the target resolution, provided in radians of latitude per texel. This value is final.fileStore - the file store in which to place the downloaded elevations.listener - an optional retrieval listener. May be null.IllegalArgumentException - if either the layer, the sector or file store are null, or the resolution is
                                  less than zero.protected void callRetrievalListeners(Retriever retriever, PlaceNameLayer.Tile tile)
protected int estimateNumberTilesinSector(PlaceNameLayer.NavigationTile tile, Sector searchSector)
protected long getEstimatedMissingDataSize()
protected int getMissingTilesCountEstimate(Sector sector, double resolution)
protected ArrayList<PlaceNameLayer.Tile> getMissingTilesInSector(Sector sector) throws InterruptedException
InterruptedExceptionprotected boolean isTileLocalOrAbsent(PlaceNameLayer.Tile tile)
protected List<PlaceNameLayer.NavigationTile> navTilesVisible(PlaceNameLayer.NavigationTile tile, Sector sector)
protected void removeRetrievedTile(PlaceNameLayer.Tile tile)
public void run()
run in interface Runnablerun in class BulkRetrievalThreadprotected void submitMissingTilesRequests()
                                   throws InterruptedException
InterruptedExceptionprotected void transferMissingTiles(ArrayList<PlaceNameLayer.Tile> source, ArrayList<PlaceNameLayer.Tile> destination, int maxCount)