Class DefaultSplitBigTileImageTask
- java.lang.Object
-
- com.supermap.services.components.impl.DefaultSplitBigTileImageTask
-
- All Implemented Interfaces:
- SplitBigTileImageTask, java.lang.Runnable
public class DefaultSplitBigTileImageTask extends java.lang.Object implements SplitBigTileImageTask
The default tile cutting implementation class.
-
-
Constructor Summary
Constructors Constructor and Description DefaultSplitBigTileImageTask()
-
Method Summary
Methods Modifier and Type Method and Description protected java.awt.image.BufferedImageconvertBGRBufferImageType(java.awt.image.BufferedImage image)outputMapToBitmap (boolean) interface of UGO out of the picture saved to jpg format using the JDK method will be infected with a layer of red UGO uses the outputMapToBitmap (boolean) interface to create a picture with a transparent channel and will set a default value but jpg only has three channels (no transparent channel), so JPG pictures will have a layer of red (suspected transparent channel value as Red value) because of the choice of mixed format out of the picture, the picture saved format is jpg is here where change bufferIamge channel to three channelsvoidconvertToPng8(boolean value)Converts to PNG8 format.protected booleanneedTransparentProcess(java.awt.image.BufferedImage subImage)Judges whether or not transparent processing is required in the specified pixel matrixvoidrun()voidsetBigTileInfo(java.awt.image.BufferedImage image, int pColIndex, int pRowIndex, int pColCount, int pRowCount, Rectangle2D pRbounds, java.lang.String pFormatName, float compressionQuality, ScaleBuildConfig scaleConfig, double pResolution, java.lang.String tileVersion, java.util.concurrent.atomic.AtomicLong pStoreCount, TileColorType tileColorType)Sets the bigTile informationvoidsetBlankSizeThreshold(int value)Sets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.voidsetCurrentTask(TileTask value)Binds the unit tile task.voidsetExecutingState(TaskExecutingState taskExecutingState)Sets task excuting state.voidsetKvStore(KeyValueStore kvStore)Sets the key-value storage.voidsetListener(TileBuilder.BuildTileProcessListener value)Sets the tile status listenervoidsetLogger(LocLogger value)Sets the output log object.voidsetTaskStartTime(long time)Sets the task start time.voidsetTileStore(TileStore value)Sets tile storage.voidsetTransparent(boolean pTransparent)Sets whether the image is transparent.voidsetWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)Sets the white chart information list.
-
-
-
Method Detail
-
setBigTileInfo
public void setBigTileInfo(java.awt.image.BufferedImage image, int pColIndex, int pRowIndex, int pColCount, int pRowCount, Rectangle2D pRbounds, java.lang.String pFormatName, float compressionQuality, ScaleBuildConfig scaleConfig, double pResolution, java.lang.String tileVersion, java.util.concurrent.atomic.AtomicLong pStoreCount, TileColorType tileColorType)Description copied from interface:SplitBigTileImageTaskSets the bigTile information
- Specified by:
setBigTileInfoin interfaceSplitBigTileImageTask
-
setKvStore
public void setKvStore(KeyValueStore kvStore)
Description copied from interface:SplitBigTileImageTaskSets the key-value storage.
- Specified by:
setKvStorein interfaceSplitBigTileImageTask
-
setLogger
public void setLogger(LocLogger value)
Sets the output log object.
- Parameters:
value-
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
convertBGRBufferImageType
protected java.awt.image.BufferedImage convertBGRBufferImageType(java.awt.image.BufferedImage image)
outputMapToBitmap (boolean) interface of UGO out of the picture saved to jpg format using the JDK method will be infected with a layer of red UGO uses the outputMapToBitmap (boolean) interface to create a picture with a transparent channel and will set a default value but jpg only has three channels (no transparent channel), so JPG pictures will have a layer of red (suspected transparent channel value as Red value) because of the choice of mixed format out of the picture, the picture saved format is jpg is here where change bufferIamge channel to three channels
- Parameters:
subImage-- Since:
- 8.1.0
-
needTransparentProcess
protected boolean needTransparentProcess(java.awt.image.BufferedImage subImage)
Judges whether or not transparent processing is required in the specified pixel matrix
- Parameters:
subImage-- Returns:
- Since:
- 8.0.2
-
setBlankSizeThreshold
public void setBlankSizeThreshold(int value)
Description copied from interface:SplitBigTileImageTaskSets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.
- Specified by:
setBlankSizeThresholdin interfaceSplitBigTileImageTask
-
convertToPng8
public void convertToPng8(boolean value)
Description copied from interface:SplitBigTileImageTaskConverts to PNG8 format.
- Specified by:
convertToPng8in interfaceSplitBigTileImageTask
-
setCurrentTask
public void setCurrentTask(TileTask value)
Description copied from interface:SplitBigTileImageTaskBinds the unit tile task.
- Specified by:
setCurrentTaskin interfaceSplitBigTileImageTask
-
setTransparent
public void setTransparent(boolean pTransparent)
Description copied from interface:SplitBigTileImageTaskSets whether the image is transparent.
- Specified by:
setTransparentin interfaceSplitBigTileImageTask
-
setTileStore
public void setTileStore(TileStore value)
Description copied from interface:SplitBigTileImageTaskSets tile storage.
- Specified by:
setTileStorein interfaceSplitBigTileImageTask
-
setExecutingState
public void setExecutingState(TaskExecutingState taskExecutingState)
Description copied from interface:SplitBigTileImageTaskSets task excuting state.
- Specified by:
setExecutingStatein interfaceSplitBigTileImageTask
-
setListener
public void setListener(TileBuilder.BuildTileProcessListener value)
Description copied from interface:SplitBigTileImageTaskSets the tile status listener
- Specified by:
setListenerin interfaceSplitBigTileImageTask
-
setTaskStartTime
public void setTaskStartTime(long time)
Description copied from interface:SplitBigTileImageTaskSets the task start time.
- Specified by:
setTaskStartTimein interfaceSplitBigTileImageTask
-
setWhiteInfos
public void setWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)
Description copied from interface:SplitBigTileImageTaskSets the white chart information list.
- Specified by:
setWhiteInfosin interfaceSplitBigTileImageTask
-
-