public final class SimpleCacheHelperImpl extends java.lang.Object implements SimpleCacheHelper
Constructor and Description |
---|
SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache(java.lang.String mapName, Rectangle2D bounds)
Clear the cache in specific area
|
java.lang.String |
getImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)
Get the tile full path based on map parameters and map output settings.
|
int[] |
getImageIndexs(MapParameter mapParam)
Get tile index value
|
java.lang.String |
getImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)
Set the tile relative path based on map parameters and map output settings.
|
public SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
Constructor
mapParam
-outputDir
-outputSite
-public java.lang.String getImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)
Set the tile relative path based on map parameters and map output settings.
getImageRelativeURL
in interface SimpleCacheHelper
mapParam
- map parametersoutputOption
- output optionspublic java.lang.String getImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)
Get the tile full path based on map parameters and map output settings.
getImageFullURL
in interface SimpleCacheHelper
mapParam
- map parametersoutputOption
- output optionspublic int[] getImageIndexs(MapParameter mapParam)
Get tile index value
getImageIndexs
in interface SimpleCacheHelper
mapParam
- map parameterspublic void clearCache(java.lang.String mapName, Rectangle2D bounds)
Clear the cache in specific area
clearCache
in interface SimpleCacheHelper
mapName
- the map namebounds
- the specific range