|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.map.Layer com.esri.map.ArcGISTiledMapServiceLayer
public class ArcGISTiledMapServiceLayer
An implementation of an ArcGIS Tiled Map Service. This class draws to a JComponent graphics context (JMap) and to an in-memory graphics context (JMap, Map) Additionally, it also draws its contents to an in-memory image maintained within this class for quick redraws of the contents of this individual layer if the state of the layer hasn't changed during a draw operation
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.map.Layer |
---|
Layer.LayerStatus |
Field Summary | |
---|---|
protected int[] |
displayLevels
|
protected boolean |
isDirty
|
protected ConcurrentHashMap<String,Future<?>> |
pending
|
protected static ExecutorService |
pool
|
Fields inherited from class com.esri.map.Layer |
---|
_credentials, _progress, _resolutionList, serviceInfo |
Constructor Summary | |
---|---|
ArcGISTiledMapServiceLayer()
Constructs a new tiled map service layer. |
|
ArcGISTiledMapServiceLayer(String url)
Constructs a tiled map service layer. |
|
ArcGISTiledMapServiceLayer(String url,
UserCredentials credentials)
Constructs a tiled map service layer from a URL and credentials for the secure service. |
Method Summary | |
---|---|
protected void |
cancelRequest(int lod,
int col,
int row)
|
void |
clearTiles()
Cancels all current tile request. |
protected void |
createNativeLayer()
|
protected void |
createResolutionList(TileInfo tileInfo)
Creates the resolution list. |
SpatialReference |
getDefaultSpatialReference()
Gets the defaultSpatialReference of the Layer. |
protected Rectangle |
getExtentBoundsOnScreen()
|
LayerLegendInfoCollection |
getLegend()
|
ArcGISPopupInfo |
getPopupInfo(int sublayerId)
|
double |
getResolution()
Gets the resolution of the Layer. |
protected void |
getTileAsynch(int lod,
int col,
int row,
com.esri.map.TiledMapServiceLayer.TileListener tilecallback)
|
protected void |
init(boolean isVisible,
int[] displayLevels,
String title,
float opacity)
This method is called only when composing a Map from a Web Map. |
protected void |
initializeNativeLayer()
|
protected void |
internalInit()
|
protected long |
nativeCreateLayer()
|
protected boolean |
nativeInitialize(long layerHandle,
int pWKT,
String wkt,
double originX,
double originY,
double minX,
double minY,
double maxX,
double maxY,
double[] lodScale,
double[] lodResolution,
int lodCount,
int dpi,
int tilePixelWidth,
int tilePixelHeight)
|
protected void |
nativeSetCachePath(long layerHandle,
String path)
|
protected void |
nativeSetTile(long layerHandle,
int lod,
int col,
int row,
byte[] pData,
int size)
|
protected void |
requestTile(int lod,
int col,
int row)
|
protected void |
retrieveNoDataTileETag()
|
void |
setUrl(String url)
Sets the URL. |
protected void |
updateProgress()
Update progress. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean isDirty
protected int[] displayLevels
protected final ConcurrentHashMap<String,Future<?>> pending
protected static final ExecutorService pool
Constructor Detail |
---|
public ArcGISTiledMapServiceLayer()
public ArcGISTiledMapServiceLayer(String url)
url
- A URL to the ArcGIS tiled map service end-point.public ArcGISTiledMapServiceLayer(String url, UserCredentials credentials)
url
- the URLcredentials
- the credentialsMethod Detail |
---|
protected void internalInit()
protected void createResolutionList(TileInfo tileInfo)
tileInfo
- the tile infopublic LayerLegendInfoCollection getLegend()
getLegend
in class Layer
public double getResolution()
Layer
getResolution
in class Layer
public SpatialReference getDefaultSpatialReference()
Layer
getDefaultSpatialReference
in class Layer
public ArcGISPopupInfo getPopupInfo(int sublayerId)
getPopupInfo
in class Layer
protected Rectangle getExtentBoundsOnScreen()
protected void getTileAsynch(int lod, int col, int row, com.esri.map.TiledMapServiceLayer.TileListener tilecallback)
protected void initializeNativeLayer()
initializeNativeLayer
in class Layer
protected void retrieveNoDataTileETag()
protected void requestTile(int lod, int col, int row)
protected void cancelRequest(int lod, int col, int row)
public void setUrl(String url)
setUrl
in class Layer
url
- the URLpublic void clearTiles()
protected void init(boolean isVisible, int[] displayLevels, String title, float opacity)
Layer
init
in class Layer
protected void createNativeLayer()
createNativeLayer
in class Layer
protected void updateProgress()
protected long nativeCreateLayer()
protected boolean nativeInitialize(long layerHandle, int pWKT, String wkt, double originX, double originY, double minX, double minY, double maxX, double maxY, double[] lodScale, double[] lodResolution, int lodCount, int dpi, int tilePixelWidth, int tilePixelHeight)
protected void nativeSetTile(long layerHandle, int lod, int col, int row, byte[] pData, int size)
protected void nativeSetCachePath(long layerHandle, String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |