Class DefaultTileBuilder
- java.lang.Object
-
- com.supermap.services.components.impl.DefaultTileBuilder
-
- All Implemented Interfaces:
- MapTileBuilder, TileBuilder, java.lang.Runnable
public class DefaultTileBuilder extends java.lang.Object implements MapTileBuilder, java.lang.Runnable
The default implementation class for the tile builder
- Since:
- 6.1.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.supermap.services.components.TileBuilder
TileBuilder.BuildTileProcessListener
-
-
Constructor Summary
Constructors Constructor and Description DefaultTileBuilder()DefaultTileBuilder(CheckedJobBuildConfig jobConfig, int pOutputMapThreadCount, int pSplitImageThreadCount)
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(TileBuilder.BuildTileProcessListener listener)Sets the tiling task execution status listenervoidautoAvoidEffectEnabled(boolean value)Whether to automatically avoid.voidbigImageSize(int value)Sets the size of the bigImage.voidconvertToPng8(boolean value)Sets whether to convert to PNG8.voiddispose()Log out the current objectjava.lang.RunnablegetRunnable()Returns theRunnableinstance of the tile generator for commiting to the execution in the thread pool.voidinit()Initialize the tile generatorvoidrun()Executing entrancevoidsetCompressionQuality(float compressionQuality)voidsetFormat(OutputFormat pFormat)Sets the tile formatvoidsetKvStore(KeyValueStore kvStore)Sets the key value to the memory, the user saves the white chart informationvoidsetMap(Map pMap)Sets the map business component for tilingvoidsetMapName(java.lang.String pMapName)Set the map namevoidsetOriginalPoint(Point2D pOriginalPoint)Sets the origin point of the map tilevoidsetOutputMapThreadCount(int value)Sets the number of tile threadsvoidsetSplitImageThreadCount(int value)Sets the number of threads for cutting mapvoidsetTask(TileTask task)Sets the tile task information.voidsetTask(TileTask task, TaskExecutingState executingState)Sets the tiling task information and task execution status.voidsetTileSize(int pImageSize)Sets the tile sizevoidsetTileStore(TileStore pTileStore)Sets the tiling memoryvoidsetTileVersion(java.lang.String tileVersion)Sets the tile versionvoidsetTransparent(boolean pTransparent)Whether the settings are transparent
-
-
-
Constructor Detail
-
DefaultTileBuilder
public DefaultTileBuilder()
-
DefaultTileBuilder
public DefaultTileBuilder(CheckedJobBuildConfig jobConfig, int pOutputMapThreadCount, int pSplitImageThreadCount)
-
-
Method Detail
-
setMap
public void setMap(Map pMap)
Sets the map business component for tiling
- Specified by:
setMapin interfaceMapTileBuilder- Parameters:
pMap-- Since:
- 6.1.3
-
setTask
public void setTask(TileTask task, TaskExecutingState executingState)
Sets the tiling task information and task execution status.
- Specified by:
setTaskin interfaceTileBuilder- Parameters:
task-executingState-- Since:
- 6.1.3
-
setTileStore
public void setTileStore(TileStore pTileStore)
Sets the tiling memory
- Specified by:
setTileStorein interfaceTileBuilder- Parameters:
pTileStore-- Since:
- 6.1.3
-
setMapName
public void setMapName(java.lang.String pMapName)
Set the map name
- Specified by:
setMapNamein interfaceMapTileBuilder- Parameters:
pMapName-- Since:
- 6.1.3
-
setOriginalPoint
public void setOriginalPoint(Point2D pOriginalPoint)
Sets the origin point of the map tile
- Specified by:
setOriginalPointin interfaceTileBuilder- Parameters:
pOriginalPoint-- Since:
- 6.1.3
-
addListener
public void addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
- Specified by:
addListenerin interfaceTileBuilder- Parameters:
listener-- Since:
- 6.1.3
-
setFormat
public void setFormat(OutputFormat pFormat)
Sets the tile format
- Specified by:
setFormatin interfaceTileBuilder- Parameters:
pFormat-- Since:
- 6.1.3
-
setCompressionQuality
public void setCompressionQuality(float compressionQuality)
-
setTileSize
public void setTileSize(int pImageSize)
Sets the tile size
- Specified by:
setTileSizein interfaceTileBuilder- Parameters:
pImageSize-- Since:
- 6.1.3
-
setTransparent
public void setTransparent(boolean pTransparent)
Whether the settings are transparent
- Specified by:
setTransparentin interfaceMapTileBuilder- Parameters:
pTransparent-- Since:
- 6.1.3
-
setTileVersion
public void setTileVersion(java.lang.String tileVersion)
Sets the tile version
- Specified by:
setTileVersionin interfaceTileBuilder- Parameters:
tileVersion-- Since:
- 6.1.3
-
setKvStore
public void setKvStore(KeyValueStore kvStore)
Sets the key value to the memory, the user saves the white chart information
- Specified by:
setKvStorein interfaceTileBuilder- Parameters:
kvStore-- Since:
- 6.1.3
-
setOutputMapThreadCount
public void setOutputMapThreadCount(int value)
Sets the number of tile threads
- Parameters:
value-- Since:
- 6.1.3
-
setSplitImageThreadCount
public void setSplitImageThreadCount(int value)
Sets the number of threads for cutting map
- Parameters:
value-- Since:
- 6.1.3
-
autoAvoidEffectEnabled
public void autoAvoidEffectEnabled(boolean value)
Whether to automatically avoid.
- Parameters:
value-- Since:
- 7.1.0
-
init
public void init()
Description copied from interface:TileBuilderInitialize the tile generator
- Specified by:
initin interfaceTileBuilder
-
run
public void run()
Executing entrance
- Specified by:
runin interfacejava.lang.Runnable- Since:
- 6.1.3
-
dispose
public void dispose()
Log out the current object
- Specified by:
disposein interfaceTileBuilder- Since:
- 6.1.3
-
setTask
public void setTask(TileTask task)
Sets the tile task information.
- Parameters:
task-- Since:
- 6.1.3
-
getRunnable
public java.lang.Runnable getRunnable()
Returns the
Runnableinstance of the tile generator for commiting to the execution in the thread pool. Because the current class implements theRunnableinterface, so just return the current instance- Specified by:
getRunnablein interfaceTileBuilder- Returns:
- Since:
- 6.1.3
-
convertToPng8
public void convertToPng8(boolean value)
Sets whether to convert to PNG8.
- Parameters:
value-
-
bigImageSize
public void bigImageSize(int value)
Sets the size of the bigImage.
- Parameters:
value-
-
-