com.esri.map
Class DynamicLayer

java.lang.Object
  extended by com.esri.map.Layer
      extended by com.esri.map.DynamicLayer
Direct Known Subclasses:
ArcGISDynamicMapServiceLayer, ArcGISImageServiceLayer, WmsDynamicMapServiceLayer

public abstract class DynamicLayer
extends Layer


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.map.Layer
Layer.LayerStatus
 
Field Summary
protected  SpatialReference _nativeCreateSpatialRef
           
 
Fields inherited from class com.esri.map.Layer
_credentials, _progress, _resolutionList, serviceInfo
 
Constructor Summary
DynamicLayer()
           
DynamicLayer(String url, UserCredentials credentials)
           
 
Method Summary
protected  void createNativeLayer()
           
protected  double getCenterMeridian()
          return central meridian value
 SpatialReference getDefaultSpatialReference()
          Gets the defaultSpatialReference of the Layer.
 double getResolution()
          Gets the resolution of the Layer.
protected  void initializeNativeLayer()
           
protected  boolean isCrossesDateline()
          is cross date line.
 void refresh()
          Force the map to redraw the layer.
protected  void requestImage(int width, int height, double minx, double miny, double maxx, double maxy)
           
 void setUrl(String url)
          Set the URL for the layer.
protected  void startlisteningToMapEvents(JMap map)
          Starts this layer listening to map events.
protected  void stopListeningToMapEvents(JMap map)
          Stops this layer listening to map events.
 
Methods inherited from class com.esri.map.Layer
addLayerInitializeCompleteListener, finalize, fireLayerCreateCompleteEvent, fireLayerCreateErrorEvent, fireLayerCreateErrorEvent, getCopyrightText, getCredentialsInternal, getDescription, getException, getExtent, getFullExtent, getInitialExtent, getInitializationError, getLayerHandle, getLegend, getMap, getMapServer, getMapServerInfo, getMapServerLegendInfo, getMaxScale, getMinScale, getName, getOpacity, getPopupInfo, getResolutionList, getServiceDescription, getSpatialReference, getStatus, getUrl, getUrlHashCode, init, initializeAsync, internalGetLayerLegendInfos, internalInit, isHidingNoDataTiles, isInitialized, isReady, isShowingCopyright, isVisible, loadServiceInfo, lock, recycle, reinitializeAsync, removeLayerInitializeCompleteListener, setCopyrightText, setCredentials, setDefaultSpatialReference, setDescription, setError, setException, setFullExtent, setInitialExtent, setLayerHandle, setMap, setMapServer, setName, setOpacity, setPopupInfos, setServiceDescription, setShowingCopyright, setStatus, setVisible, unlock, updateSpatialReferenceStatus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nativeCreateSpatialRef

protected SpatialReference _nativeCreateSpatialRef
Constructor Detail

DynamicLayer

public DynamicLayer(String url,
                    UserCredentials credentials)

DynamicLayer

public DynamicLayer()
Method Detail

getResolution

public double getResolution()
Description copied from class: Layer
Gets the resolution of the Layer.

Overrides:
getResolution in class Layer
Returns:
resolution.

getDefaultSpatialReference

public SpatialReference getDefaultSpatialReference()
Description copied from class: Layer
Gets the defaultSpatialReference of the Layer. For service layers this is defined by the service.

Overrides:
getDefaultSpatialReference in class Layer
Returns:
Returns the defaultSpatialReference.

setUrl

public void setUrl(String url)
Set the URL for the layer. This can only be set once.

Overrides:
setUrl in class Layer
Parameters:
url - The URL.

startlisteningToMapEvents

protected void startlisteningToMapEvents(JMap map)
Starts this layer listening to map events. This can be used, for example, to add a MapEventListener to the map.

Parameters:
map - The map to listen to.

stopListeningToMapEvents

protected void stopListeningToMapEvents(JMap map)
Stops this layer listening to map events. This can be used, for example, to remove a MapEventListener in the map.

Parameters:
map - The map to stop listening to.

refresh

public void refresh()
Force the map to redraw the layer. Does nothing if the layer has not been added to a map.


requestImage

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

createNativeLayer

protected void createNativeLayer()
Specified by:
createNativeLayer in class Layer

initializeNativeLayer

protected void initializeNativeLayer()
Specified by:
initializeNativeLayer in class Layer

isCrossesDateline

protected boolean isCrossesDateline()
is cross date line.

Returns:
boolean

getCenterMeridian

protected double getCenterMeridian()
return central meridian value

Returns:
double


Copyright © 2012. All Rights Reserved.