public class OnlineLayersDownloadManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
context |
protected android.widget.ProgressBar |
downloadPB |
protected MapView |
map |
protected boolean |
selectingRegion |
protected Shape |
shape |
static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
void |
adjustProgressBarSecondary(int offset) |
void |
cancelRegionSelect()
cancel rectangle select and/or download if applicable
|
boolean |
hasRegionShape() |
boolean |
isDownloading() |
boolean |
isSelectingRegion() |
protected void |
resetProgressBar()
reset progressBar progress, secondary progress and max to 0
|
void |
setCallback(LayerDownloader.Callback cb) |
void |
setLabelVisibility(boolean visible,
int queue) |
void |
setLayerProgressText(java.lang.String progressText) |
void |
setProgress(int currentProg,
int secondaryProg,
int maxProg)
set ProgressBar progress, secondary progress and max all in one handy method.
|
void |
setProgressBarMax(int max) |
void |
setTileProgressText(java.lang.String progressText) |
void |
setTimeProgressText(long secondsLeft) |
void |
toastStatus(java.lang.String text,
int length) |
void |
toggleProgressBarVisibility(boolean visible) |
public static final java.lang.String TAG
protected final MapView map
protected final android.content.Context context
protected Shape shape
protected boolean selectingRegion
protected final android.widget.ProgressBar downloadPB
public void toastStatus(java.lang.String text, int length)
public void setProgress(int currentProg, int secondaryProg, int maxProg)
public void adjustProgressBarSecondary(int offset)
public void setProgressBarMax(int max)
protected void resetProgressBar()
public void toggleProgressBarVisibility(boolean visible)
public void setLayerProgressText(java.lang.String progressText)
public void setTileProgressText(java.lang.String progressText)
public void setTimeProgressText(long secondsLeft)
public void setLabelVisibility(boolean visible, int queue)
public boolean isDownloading()
public boolean isSelectingRegion()
public boolean hasRegionShape()
public void cancelRegionSelect()
public void setCallback(LayerDownloader.Callback cb)