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 MapTileBuilder
pMap
-public void setTask(TileTask task, TaskExecutingState executingState)
Sets the tiling task information and task execution status.
setTask
in interface TileBuilder
task
-executingState
-public void setTileStore(TileStore pTileStore)
Sets the tiling memory
setTileStore
in interface TileBuilder
pTileStore
-public void setMapName(java.lang.String pMapName)
Set the map name
setMapName
in interface MapTileBuilder
pMapName
-public void setOriginalPoint(Point2D pOriginalPoint)
Sets the origin point of the map tile
setOriginalPoint
in interface TileBuilder
pOriginalPoint
-public void addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
addListener
in interface TileBuilder
listener
-public void setFormat(OutputFormat pFormat)
Sets the tile format
setFormat
in interface TileBuilder
pFormat
-public void setCompressionQuality(float compressionQuality)
public void setTileSize(int pImageSize)
Sets the tile size
setTileSize
in interface TileBuilder
pImageSize
-public void setTransparent(boolean pTransparent)
Whether the settings are transparent
setTransparent
in interface MapTileBuilder
pTransparent
-public void setTileVersion(java.lang.String tileVersion)
Sets the tile version
setTileVersion
in interface TileBuilder
tileVersion
-public void setKvStore(KeyValueStore kvStore)
Sets the key value to the memory, the user saves the white chart information
setKvStore
in interface TileBuilder
kvStore
-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()
TileBuilder
Initialize the tile generator
init
in interface TileBuilder
public void run()
Executing entrance
run
in interface java.lang.Runnable
public void dispose()
Log out the current object
dispose
in interface TileBuilder
public 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 TileBuilder
public void convertToPng8(boolean value)
Sets whether to convert to PNG8.
value
-public void bigImageSize(int value)
Sets the size of the bigImage.
value
-