com.esri.arcgis.carto
Interface IMapCooker

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IMapCooker2
All Known Implementing Classes:
ImageCooker, IMapCooker2Proxy, IMapCookerProxy, MapCooker, MapCookerX

public interface IMapCooker
extends java.io.Serializable

COM Interface 'IMapCooker'. Generated 3/19/2015 1:20:52 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description: 'Provides access to members that controls a map cache generator.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IID842ba25b_fe2f_41a4_8867_b521951a2b34
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 void addCachedLayers(IMap pMap)
          Adds all cached layers in the map cache.
 void addLayer(java.lang.String name, ILayer pLayer)
          Adds a layer to the map cache.
 void clear(ILayer pLayer, IEnvelope pExtent)
          Clears cache for a given layer within a given extent.
 void clearAll()
          Clears cache for all layers.
 void connect(java.lang.String location, java.lang.String name, IMap pMap)
          Connects to a given map and its cache.
 void delete()
          Deletes map service cache directory.
 void draw(ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel)
          Draws a given layer to the specified display.
 void exit()
          Exits the map cache generator host process.
 void generate(IMap pMap, ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel)
          Fully generates cache for a given layer.
 java.lang.String getCacheDirectory(ILayer pLayer)
          Gets cache directory for a given layer.
 IEnvelope getExtent()
          The map cache extent.
 java.lang.String getFormat()
          The tile cache format.
 int getMaxTileCount()
          The maximum number of map tiles to be generated.
 int getNumLevels()
          The number of map cache levels.
 java.lang.String getPath()
          The map cache path.
 byte[] getTile(ILayer pLayer, int level, int row, int column)
          Gets a tile for a given tile location from a given layer.
 ITileCacheInfo getTileCacheInfo()
          The tile cache info.
 boolean hasCache()
          Indicates if there is any cache.
 boolean hasLayerCache(ILayer pLayer)
          Indicates if there is a cache for a given layer.
 boolean isAntialiasing()
          Indicates if antialiasing should be used.
 void putTile(ILayer pLayer, int level, int row, int column, byte[] ppTile)
          Puts a tile for a given tile location for a given layer.
 void putTilePosition(int level, int row, int column)
          Sets the current map tile position.
 void queryTilePosition(int[] pLevel, int[] pRow, int[] pColumn)
          Queries for the current map tile position.
 void setAntialiasing(boolean pAntialiasing)
          Indicates if antialiasing should be used.
 void setDefaultLODInfos(int numLevels)
          Sets default LOD Info for a given number of levels.
 void setExtent(IEnvelope ppExtent)
          The map cache extent.
 void setFormat(java.lang.String pFormat)
          The tile cache format.
 void setMaxTileCount(int pNumTiles)
          The maximum number of map tiles to be generated.
 void setPath(java.lang.String pPath)
          The map cache path.
 void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
          The tile cache info.
 void snap(IDisplay pDisplay, IEnvelope pExtent)
          Snaps a view extent to one of map cache levels.
 void update(IMap pMap, ILayer pLayer, IDisplay pDisplay, IEnvelope pExtent, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel)
          Updates cache for a given layer within a given extent.
 

Field Detail

IID842ba25b_fe2f_41a4_8867_b521951a2b34

static final int IID842ba25b_fe2f_41a4_8867_b521951a2b34
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

getPath

java.lang.String getPath()
                         throws java.io.IOException,
                                AutomationException
The map cache path.

Returns:
The pPath
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPath

void setPath(java.lang.String pPath)
             throws java.io.IOException,
                    AutomationException
The map cache path.

Parameters:
pPath - The pPath (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The map cache extent.

Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExtent

void setExtent(IEnvelope ppExtent)
               throws java.io.IOException,
                      AutomationException
The map cache extent.

Parameters:
ppExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormat

java.lang.String getFormat()
                           throws java.io.IOException,
                                  AutomationException
The tile cache format.

Returns:
The pFormat
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFormat

void setFormat(java.lang.String pFormat)
               throws java.io.IOException,
                      AutomationException
The tile cache format.

Parameters:
pFormat - The pFormat (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAntialiasing

boolean isAntialiasing()
                       throws java.io.IOException,
                              AutomationException
Indicates if antialiasing should be used.

Returns:
The pAntialiasing
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAntialiasing

void setAntialiasing(boolean pAntialiasing)
                     throws java.io.IOException,
                            AutomationException
Indicates if antialiasing should be used.

Parameters:
pAntialiasing - The pAntialiasing (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTileCacheInfo

ITileCacheInfo getTileCacheInfo()
                                throws java.io.IOException,
                                       AutomationException
The tile cache info.

Returns:
A reference to a com.esri.arcgis.carto.ITileCacheInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTileCacheInfoByRef

void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
                           throws java.io.IOException,
                                  AutomationException
The tile cache info.

Parameters:
ppCacheInfo - A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNumLevels

int getNumLevels()
                 throws java.io.IOException,
                        AutomationException
The number of map cache levels.

Returns:
The pNumLevels
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

connect

void connect(java.lang.String location,
             java.lang.String name,
             IMap pMap)
             throws java.io.IOException,
                    AutomationException
Connects to a given map and its cache.

Parameters:
location - The location (in)
name - The name (in)
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addCachedLayers

void addCachedLayers(IMap pMap)
                     throws java.io.IOException,
                            AutomationException
Adds all cached layers in the map cache.

Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayer

void addLayer(java.lang.String name,
              ILayer pLayer)
              throws java.io.IOException,
                     AutomationException
Adds a layer to the map cache.

Parameters:
name - The name (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

void clear(ILayer pLayer,
           IEnvelope pExtent)
           throws java.io.IOException,
                  AutomationException
Clears cache for a given layer within a given extent.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearAll

void clearAll()
              throws java.io.IOException,
                     AutomationException
Clears cache for all layers.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

snap

void snap(IDisplay pDisplay,
          IEnvelope pExtent)
          throws java.io.IOException,
                 AutomationException
Snaps a view extent to one of map cache levels.

Parameters:
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

void draw(ILayer pLayer,
          IDisplay pDisplay,
          ITrackCancel pTrackCancel)
          throws java.io.IOException,
                 AutomationException
Draws a given layer to the specified display.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDefaultLODInfos

void setDefaultLODInfos(int numLevels)
                        throws java.io.IOException,
                               AutomationException
Sets default LOD Info for a given number of levels.

Parameters:
numLevels - The numLevels (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generate

void generate(IMap pMap,
              ILayer pLayer,
              IDisplay pDisplay,
              ITrackCancel pTrackCancel)
              throws java.io.IOException,
                     AutomationException
Fully generates cache for a given layer.

Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasCache

boolean hasCache()
                 throws java.io.IOException,
                        AutomationException
Indicates if there is any cache.

Returns:
The pHasCache
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasLayerCache

boolean hasLayerCache(ILayer pLayer)
                      throws java.io.IOException,
                             AutomationException
Indicates if there is a cache for a given layer.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
The pHasCache
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTile

byte[] getTile(ILayer pLayer,
               int level,
               int row,
               int column)
               throws java.io.IOException,
                      AutomationException
Gets a tile for a given tile location from a given layer.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
level - The level (in)
row - The row (in)
column - The column (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putTile

void putTile(ILayer pLayer,
             int level,
             int row,
             int column,
             byte[] ppTile)
             throws java.io.IOException,
                    AutomationException
Puts a tile for a given tile location for a given layer.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
level - The level (in)
row - The row (in)
column - The column (in)
ppTile - An unsigned byte (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCacheDirectory

java.lang.String getCacheDirectory(ILayer pLayer)
                                   throws java.io.IOException,
                                          AutomationException
Gets cache directory for a given layer.

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
The pCacheDir
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTilePosition

void queryTilePosition(int[] pLevel,
                       int[] pRow,
                       int[] pColumn)
                       throws java.io.IOException,
                              AutomationException
Queries for the current map tile position.

Parameters:
pLevel - The pLevel (out: use single element array)
pRow - The pRow (out: use single element array)
pColumn - The pColumn (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putTilePosition

void putTilePosition(int level,
                     int row,
                     int column)
                     throws java.io.IOException,
                            AutomationException
Sets the current map tile position.

Parameters:
level - The level (in)
row - The row (in)
column - The column (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxTileCount

int getMaxTileCount()
                    throws java.io.IOException,
                           AutomationException
The maximum number of map tiles to be generated.

Returns:
The pNumTiles
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxTileCount

void setMaxTileCount(int pNumTiles)
                     throws java.io.IOException,
                            AutomationException
The maximum number of map tiles to be generated.

Parameters:
pNumTiles - The pNumTiles (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exit

void exit()
          throws java.io.IOException,
                 AutomationException
Exits the map cache generator host process.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

update

void update(IMap pMap,
            ILayer pLayer,
            IDisplay pDisplay,
            IEnvelope pExtent,
            ILongArray pLevels,
            int updateMode,
            ITrackCancel pTrackCancel)
            throws java.io.IOException,
                   AutomationException
Updates cache for a given layer within a given extent.

Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
pLevels - A reference to a com.esri.arcgis.system.ILongArray (in)
updateMode - A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

void delete()
            throws java.io.IOException,
                   AutomationException
Deletes map service cache directory.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.