public class DefaultTileBuilder extends java.lang.Object implements MapTileBuilder, java.lang.Runnable
The default implementation class for the tile builder
TileBuilder.BuildTileProcessListener| Constructor and Description |
|---|
DefaultTileBuilder() |
DefaultTileBuilder(CheckedJobBuildConfig jobConfig, int pOutputMapThreadCount, int pSplitImageThreadCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
|
void |
autoAvoidEffectEnabled(boolean value)
Whether to automatically avoid.
|
void |
bigImageSize(int value)
Sets the size of the bigImage.
|
void |
convertToPng8(boolean value)
Sets whether to convert to PNG8.
|
void |
dispose()
Log out the current object
|
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()
Executing entrance
|
void |
setCompressionQuality(float compressionQuality) |
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 |
setOutputMapThreadCount(int value)
Sets the number of tile threads
|
void |
setSplitImageThreadCount(int value)
Sets the number of threads for cutting map
|
void |
setTask(TileTask task)
Sets the tile task information.
|
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
|
public DefaultTileBuilder()
public DefaultTileBuilder(CheckedJobBuildConfig jobConfig, int pOutputMapThreadCount, int pSplitImageThreadCount)
public void setMap(Map pMap)
Sets the map business component for tiling
setMap in interface MapTileBuilderpMap -public void setTask(TileTask task, TaskExecutingState executingState)
Sets the tiling task information and task execution status.
setTask in interface TileBuildertask -executingState -public void setTileStore(TileStore pTileStore)
Sets the tiling memory
setTileStore in interface TileBuilderpTileStore -public void setMapName(java.lang.String pMapName)
Set the map name
setMapName in interface MapTileBuilderpMapName -public void setOriginalPoint(Point2D pOriginalPoint)
Sets the origin point of the map tile
setOriginalPoint in interface TileBuilderpOriginalPoint -public void addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
addListener in interface TileBuilderlistener -public void setFormat(OutputFormat pFormat)
Sets the tile format
setFormat in interface TileBuilderpFormat -public void setCompressionQuality(float compressionQuality)
public void setTileSize(int pImageSize)
Sets the tile size
setTileSize in interface TileBuilderpImageSize -public void setTransparent(boolean pTransparent)
Whether the settings are transparent
setTransparent in interface MapTileBuilderpTransparent -public void setTileVersion(java.lang.String tileVersion)
Sets the tile version
setTileVersion in interface TileBuildertileVersion -public void setKvStore(KeyValueStore kvStore)
Sets the key value to the memory, the user saves the white chart information
setKvStore in interface TileBuilderkvStore -public void setOutputMapThreadCount(int value)
Sets the number of tile threads
value -public void setSplitImageThreadCount(int value)
Sets the number of threads for cutting map
value -public void autoAvoidEffectEnabled(boolean value)
Whether to automatically avoid.
value -public void init()
TileBuilderInitialize the tile generator
init in interface TileBuilderpublic void run()
Executing entrance
run in interface java.lang.Runnablepublic void dispose()
Log out the current object
dispose in interface TileBuilderpublic void setTask(TileTask task)
Sets the tile task information.
task -public java.lang.Runnable getRunnable()
Returns the Runnable instance of the tile generator for commiting to the execution in the thread pool. Because the current class implements the Runnable interface, so just return the current instance
getRunnable in interface TileBuilderpublic void convertToPng8(boolean value)
Sets whether to convert to PNG8.
value -public void bigImageSize(int value)
Sets the size of the bigImage.
value -