public abstract class AbstractVectorAndUTFGridTilebuilder extends java.lang.Object implements MapTileBuilder, java.lang.Runnable
TileBuilder.BuildTileProcessListener| Modifier and Type | Field and Description |
|---|---|
protected TileTask |
currentTask |
protected int |
imageSize |
protected KeyValueStore |
kvStore |
protected TileBuilder.BuildTileProcessListener |
listeners |
protected static LocLogger |
LOCLOGGER_CN |
protected Map |
map |
protected java.lang.String |
mapName |
protected Point2D |
originalPoint |
protected TileStore |
store |
protected TaskExecutingState |
taskExecutingState |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVectorAndUTFGridTilebuilder(CheckedJobBuildConfig jobConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
|
protected abstract void |
buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) |
void |
dispose()
Logs off the current tile generator
|
KeyValueStore |
getKvStore()
Gets the key-value storage.
|
java.lang.Runnable |
getRunnable()
Returns the
Runnable instance of the tile generator for commiting to the execution in the thread pool. |
void |
init()
Initialize the tile generator
|
void |
run() |
void |
setFormat(OutputFormat pFormat)
Sets the tile format
|
void |
setKvStore(KeyValueStore kvStore)
Sets the key value to the memory, the user saves the white chart information
|
void |
setMap(Map pMap)
Sets the map business component for tiling
|
void |
setMapName(java.lang.String pMapName)
Set the map name
|
void |
setOriginalPoint(Point2D pOriginalPoint)
Sets the origin point of the map tile
|
void |
setTask(TileTask task, TaskExecutingState executingState)
Sets the tiling task information and task execution status.
|
void |
setTileSize(int pImageSize)
Sets the tile size
|
void |
setTileStore(TileStore pTileStore)
Sets the tiling memory
|
void |
setTileVersion(java.lang.String tileVersion)
Sets the tile version
|
void |
setTransparent(boolean pTransparent)
Whether the settings are transparent
|
protected void |
updateSpeed(long tileTotal) |
protected Map map
protected TileTask currentTask
protected TaskExecutingState taskExecutingState
protected TileStore store
protected java.lang.String mapName
protected Point2D originalPoint
protected TileBuilder.BuildTileProcessListener listeners
protected int imageSize
protected KeyValueStore kvStore
protected static final LocLogger LOCLOGGER_CN
protected AbstractVectorAndUTFGridTilebuilder(CheckedJobBuildConfig jobConfig)
public KeyValueStore getKvStore()
Gets the key-value storage.
public void setMap(Map pMap)
MapTileBuilderSets the map business component for tiling
setMap in interface MapTileBuilderpublic void setTask(TileTask task, TaskExecutingState executingState)
TileBuilderSets the tiling task information and task execution status.
setTask in interface TileBuilderpublic void setTileStore(TileStore pTileStore)
TileBuilderSets the tiling memory
setTileStore in interface TileBuilderpublic void setMapName(java.lang.String pMapName)
MapTileBuilderSet the map name
setMapName in interface MapTileBuilderpublic void setOriginalPoint(Point2D pOriginalPoint)
TileBuilderSets the origin point of the map tile
setOriginalPoint in interface TileBuilderpublic void addListener(TileBuilder.BuildTileProcessListener listener)
TileBuilderSets the tiling task execution status listener
addListener in interface TileBuilderpublic void setFormat(OutputFormat pFormat)
TileBuilderSets the tile format
setFormat in interface TileBuilderpublic void setTileSize(int pImageSize)
TileBuilderSets the tile size
setTileSize in interface TileBuilderpublic void setTransparent(boolean pTransparent)
MapTileBuilderWhether the settings are transparent
setTransparent in interface MapTileBuilderpublic void setTileVersion(java.lang.String tileVersion)
TileBuilderSets the tile version
setTileVersion in interface TileBuilderpublic void setKvStore(KeyValueStore kvStore)
TileBuilderSets the key value to the memory, the user saves the white chart information
setKvStore in interface TileBuilderpublic void init()
TileBuilderInitialize the tile generator
init in interface TileBuilderpublic void dispose()
TileBuilderLogs off the current tile generator
dispose in interface TileBuilderpublic java.lang.Runnable getRunnable()
TileBuilderReturns the Runnable instance of the tile generator for commiting to the execution in the thread pool.
getRunnable in interface TileBuilderpublic void run()
run in interface java.lang.Runnableprotected abstract void buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) throws StoreTileFailedException, MapException, java.io.UnsupportedEncodingException
StoreTileFailedExceptionMapExceptionjava.io.UnsupportedEncodingExceptionprotected void updateSpeed(long tileTotal)