com.esri.core.map
Class DynamicLayerModel

java.lang.Object
  extended by com.esri.core.map.LayerModel
      extended by com.esri.core.map.DynamicLayerModel
All Implemented Interfaces:
Serializable

public abstract class DynamicLayerModel
extends LayerModel

Base class for all dynamic layer models. You would typically work with one of the higher level classes, for example, use TiledLayer for cached data; DynamicLayer for non-cached data;

In a Model-View-Controller architecture, this class represents the Model. It handles fetching map images, calculating map extent and so on.

See Also:
Serialized Form

Constructor Summary
DynamicLayerModel(SpatialReference coordsys, Envelope full)
          Instantiates a dynamic layer model with the given map information.
 
Method Summary
abstract  byte[] getImage(int w, int h)
          This method provides implementation of fetching a map image from a map service.
 
Methods inherited from class com.esri.core.map.LayerModel
centerAt, getCenter, getDefaultSpatialReference, getExtent, getFullExtent, getResolution, getSpatialReference, pan, resize, setExtent, setExtent, setFullExtent, setResolution, setScreenSize, zoom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicLayerModel

public DynamicLayerModel(SpatialReference coordsys,
                         Envelope full)
Instantiates a dynamic layer model with the given map information.

Parameters:
coordsys - the default map spatial reference.
full - the full map spatial reference.
Method Detail

getImage

public abstract byte[] getImage(int w,
                                int h)
                         throws Exception
This method provides implementation of fetching a map image from a map service.

Parameters:
w - the map width in pixels
h - the map height in pixels
Throws:
Exception


Copyright © 2010. All Rights Reserved.