|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.android.map.Layer
public abstract class Layer
The base layer for all layers that can be added into MapView
.
Constructor Summary | |
---|---|
Layer()
Instantiates an object of Layer. |
Method Summary | |
---|---|
UserCredentials |
getCredentials()
Gets a copy of the credentials attached to the Layer. |
SpatialReference |
getDefaultSpatialReference()
Gets the defaultSpatialReference of the Layer. |
Polygon |
getExtent()
Gets the current extent. |
Envelope |
getFullExtent()
Returns the full extent of the layer. |
int |
getHeight()
Gets the height of the Layer in screen units. |
long |
getID()
Return the Layer runtime ID which is a long integer. |
String |
getName()
Gets the name of the layer. |
float |
getOpacity()
Gets the opacity of the Layer. |
PopupInfo |
getPopupInfo(int sublayerId)
Gets the PopupInfo associated with the sub-layer id. |
double |
getResolution()
Gets the resolution of the Layer. |
SpatialReference |
getSpatialReference()
Gets the current spatial reference of the Layer. |
String |
getTitle()
Gets the title of the Layer. |
String |
getUrl()
Gets the URL of the map service associated with the layer. |
int |
getUrlHashCode()
A convenience method that returns the hash code of the map service URL. |
int |
getWidth()
Gets the width of the Layer in screen units. |
boolean |
isInitialized()
Gets the initialized of the Layer. |
boolean |
isRecycled()
Returns true or false if the Layer object has been recycled. |
boolean |
isVisible()
Gets the visibility of the Layer. |
boolean |
isWebMapBaselayer()
Returns true if the layer is used as base layer in a web map. |
void |
recycle()
Releases resources referenced by the Layer so that they can be recycled. |
void |
reinitializeLayer(UserCredentials usercredentials)
Re-initializes the layer with the given credentials. |
void |
setName(String name)
Sets the layer name. |
void |
setOnStatusChangedListener(OnStatusChangedListener onStatusChangedListener)
Sets the onStatusChangedListener. |
void |
setOpacity(float opacity)
Sets the opacity of the Layer. |
void |
setPopupInfos(Map<Integer,PopupInfo> popUpInfos)
|
void |
setVisible(boolean visible)
Sets the visibility of the Layer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layer()
Method Detail |
---|
public void reinitializeLayer(UserCredentials usercredentials)
usercredentials
- the new credentials to try.public void recycle()
public boolean isRecycled()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- The visibility to set.public float getOpacity()
public void setOpacity(float opacity)
opacity
- the opacity to set.public void setOnStatusChangedListener(OnStatusChangedListener onStatusChangedListener)
OnStatusChangedListener.STATUS.INITIALIZED
or OnStatusChangedListener.STATUS.INITIALIZATION_FAILED
. When the initialization is failed,
you can use the OnStatusChangedListener.STATUS.getError()
to get the error details.
onStatusChangedListener
- The onStatusChangedListener to set.public boolean isInitialized()
public String getName()
public void setName(String name)
name
- a Stringpublic String getUrl()
public int getUrlHashCode()
public UserCredentials getCredentials()
public Polygon getExtent()
public Envelope getFullExtent()
public long getID()
public String getTitle()
public PopupInfo getPopupInfo(int sublayerId)
PopupInfo
associated with the sub-layer id.
PopupInfo
public void setPopupInfos(Map<Integer,PopupInfo> popUpInfos)
public SpatialReference getSpatialReference()
public double getResolution()
public int getWidth()
public int getHeight()
public SpatialReference getDefaultSpatialReference()
public boolean isWebMapBaselayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |