public abstract class

DynamicLayer

extends Layer
implements PopupLayer
java.lang.Object
   ↳ com.esri.android.map.Layer
     ↳ com.esri.android.map.DynamicLayer
Known Direct Subclasses

Class Overview

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).

Summary

Fields
protected SpatialReference[] supportedSRs
[Expand]
Inherited Fields
From class com.esri.android.map.Layer
Public Constructors
DynamicLayer(String url)
Constructs a dynamic layer from the service URL.
Public Methods
void cancelPendingTasks()
Cancel pending tasks.
float getBrightness()
Gets the brightness of the DynamicLayer.
float getContrast()
Gets the contrast of the DynamicLayer.
float getGamma()
Gets the gamma of the DynamicLayer.
boolean isPopupAllowGeometryUpdate(Graphic graphic)
Returns true if the popup allow the geometry to be updated, potentially based on some information carried by the Graphic provided.
boolean isPopupDeletable(Graphic graphic)
Returns true if the popup created is deletable, potentially based on some information carried by the Graphic provided.
boolean isPopupEditable(Graphic graphic)
Returns true if the popup created is editable, potentially based on some information carried by the Graphic provided.
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.
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.
Protected Methods
long create()
double getCenterMeridan()
return central meridan value
abstract byte[] getImage(int width, int height, Envelope extent)
void getImageAsych(int w, int h, Envelope extent, CallbackListener<byte[]> imagecallback)
void initLayer()
Initializes the layer.
boolean isCrossDateline()
is cross date line.
boolean isWrapAroundEnabled()
is wrap around enabled.
void requestImage(int width, int height, double minx, double miny, double maxx, double maxy)
[Expand]
Inherited Methods
From class com.esri.android.map.Layer
From class java.lang.Object
From interface com.esri.android.map.popup.PopupLayer

Fields

protected SpatialReference[] supportedSRs

Public Constructors

public DynamicLayer (String url)

Constructs a dynamic layer from the service URL.

Parameters
url a service URL

Public Methods

public void cancelPendingTasks ()

Cancel pending tasks.

public float getBrightness ()

Gets the brightness of the DynamicLayer.

Returns
  • Returns the brightness.

public float getContrast ()

Gets the contrast of the DynamicLayer.

Returns
  • Returns the contrast.

public float getGamma ()

Gets the gamma of the DynamicLayer.

Returns
  • Returns the gamma.

public boolean isPopupAllowGeometryUpdate (Graphic graphic)

Returns true if the popup allow the geometry to be updated, potentially based on some information carried by the Graphic provided.

public boolean isPopupDeletable (Graphic graphic)

Returns true if the popup created is deletable, potentially based on some information carried by the Graphic provided.

public boolean isPopupEditable (Graphic graphic)

Returns true if the popup created is editable, potentially based on some information carried by the Graphic provided.

public void recycle ()

Releases resources referenced by the Layer so that they can be recycled.

public void refresh ()

Invoke this method to fetch the map image from the associated map service and update the MapView.

public void setBrightness (float brightness)

Sets the brightness of the DynamicLayer.

Parameters
brightness The brightness to set.

public void setContrast (float contrast)

Sets the contrast of the DynamicLayer.

Parameters
contrast The contrast to set.

public void setGamma (float gamma)

Sets the gamma of the DynamicLayer.

Parameters
gamma The gamma to set.

Protected Methods

protected long create ()

protected double getCenterMeridan ()

return central meridan value

Returns
  • double

protected abstract byte[] getImage (int width, int height, Envelope extent)

Throws
Exception

protected void getImageAsych (int w, int h, Envelope extent, CallbackListener<byte[]> imagecallback)

protected void initLayer ()

Initializes the layer. The implementation should submit the OnStatusChangedListener.STATUS event accordingly.

protected boolean isCrossDateline ()

is cross date line.

Returns
  • boolean

protected boolean isWrapAroundEnabled ()

is wrap around enabled.

protected void requestImage (int width, int height, double minx, double miny, double maxx, double maxy)