|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.android.map.Layer
com.esri.android.map.DynamicLayer
public abstract class DynamicLayer
DynamicLayer is the base class for all map services that contain dynamic layers and can be added to a map. You would
work with one of the sub-classes of this abstract class. (for example,
ArcGISDynamicMapServiceLayer
- used to represent map services that contain dynamic
layers).
Field Summary |
---|
Fields inherited from class com.esri.android.map.Layer |
---|
credentials, nativeHandle, popUpInfos, serviceInfo |
Constructor Summary | |
---|---|
DynamicLayer(String url)
Constructs a dynamic layer from the service URL. |
Method Summary | |
---|---|
void |
cancelPendingTasks()
Cancel pending tasks. |
protected long |
create()
|
float |
getBrightness()
Gets the brightness of the DynamicLayer. |
float |
getContrast()
Gets the contrast of the DynamicLayer. |
float |
getGamma()
Gets the gamma of the DynamicLayer. |
protected abstract byte[] |
getImage(int width,
int height,
Envelope extent)
|
protected void |
getImageAsych(int w,
int h,
Envelope extent,
CallbackListener<byte[]> imagecallback)
|
protected void |
initLayer()
Initializes the layer. |
void |
recycle()
Releases resources referenced by the Layer so that they can be recycled. |
void |
refresh()
Invoke this method to fetch the map image from the associated map service and update the MapView. |
protected void |
requestImage(int width,
int height,
double minx,
double miny,
double maxx,
double maxy)
|
void |
setBrightness(float brightness)
Sets the brightness of the DynamicLayer. |
void |
setContrast(float contrast)
Sets the contrast of the DynamicLayer. |
void |
setGamma(float gamma)
Sets the gamma of the DynamicLayer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicLayer(String url)
url
- a service URLMethod Detail |
---|
protected abstract byte[] getImage(int width, int height, Envelope extent) throws Exception
Exception
protected void getImageAsych(int w, int h, Envelope extent, CallbackListener<byte[]> imagecallback)
public void recycle()
Layer
recycle
in class Layer
public void cancelPendingTasks()
protected long create()
create
in class Layer
protected void initLayer()
Layer
OnStatusChangedListener.STATUS
event accordingly.
initLayer
in class Layer
public float getBrightness()
public void setBrightness(float brightness)
brightness
- The brightness to set.public float getContrast()
public void setContrast(float contrast)
contrast
- The contrast to set.public float getGamma()
public void setGamma(float gamma)
gamma
- The gamma to set.protected void requestImage(int width, int height, double minx, double miny, double maxx, double maxy)
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |