public class DataPreProcessTileBuilder 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 |
protected Map |
map |
protected java.lang.String |
mapName |
protected Point2D |
originalPoint |
protected TaskExecutingState |
taskExecutingState |
Constructor and Description |
---|
DataPreProcessTileBuilder(CheckedJobBuildConfig jobConfig) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
|
protected void |
buildSingleTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal, MapParameter param, TileRegion tileRegion) |
void |
dispose()
Logs off the current tile generator
|
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(java.util.concurrent.atomic.AtomicLong tileTotal) |
protected Map map
protected TileTask currentTask
protected TaskExecutingState taskExecutingState
protected java.lang.String mapName
protected Point2D originalPoint
protected TileBuilder.BuildTileProcessListener listeners
protected int imageSize
protected KeyValueStore kvStore
protected static final LocLogger locLogger
public DataPreProcessTileBuilder(CheckedJobBuildConfig jobConfig)
public void setMap(Map pMap)
MapTileBuilder
Sets the map business component for tiling
setMap
in interface MapTileBuilder
public void setTask(TileTask task, TaskExecutingState executingState)
TileBuilder
Sets the tiling task information and task execution status.
setTask
in interface TileBuilder
public void setTileStore(TileStore pTileStore)
TileBuilder
Sets the tiling memory
setTileStore
in interface TileBuilder
public void setMapName(java.lang.String pMapName)
MapTileBuilder
Set the map name
setMapName
in interface MapTileBuilder
public void setOriginalPoint(Point2D pOriginalPoint)
TileBuilder
Sets the origin point of the map tile
setOriginalPoint
in interface TileBuilder
public void addListener(TileBuilder.BuildTileProcessListener listener)
TileBuilder
Sets the tiling task execution status listener
addListener
in interface TileBuilder
public void setFormat(OutputFormat pFormat)
TileBuilder
Sets the tile format
setFormat
in interface TileBuilder
public void setTileSize(int pImageSize)
TileBuilder
Sets the tile size
setTileSize
in interface TileBuilder
public void setTransparent(boolean pTransparent)
MapTileBuilder
Whether the settings are transparent
setTransparent
in interface MapTileBuilder
public void setTileVersion(java.lang.String tileVersion)
TileBuilder
Sets the tile version
setTileVersion
in interface TileBuilder
public void setKvStore(KeyValueStore kvStore)
TileBuilder
Sets the key value to the memory, the user saves the white chart information
setKvStore
in interface TileBuilder
public void init()
TileBuilder
Initialize the tile generator
init
in interface TileBuilder
public void dispose()
TileBuilder
Logs off the current tile generator
dispose
in interface TileBuilder
public java.lang.Runnable getRunnable()
TileBuilder
Returns the Runnable
instance of the tile generator for commiting to the execution in the thread pool.
getRunnable
in interface TileBuilder
public void run()
run
in interface java.lang.Runnable
protected void buildSingleTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal, MapParameter param, TileRegion tileRegion) throws StoreTileFailedException, MapException, java.io.UnsupportedEncodingException
StoreTileFailedException
MapException
java.io.UnsupportedEncodingException
protected void updateSpeed(java.util.concurrent.atomic.AtomicLong tileTotal)