com.supermap.services.components.impl

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.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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
      void convertToPng8(boolean value)
      Converts to PNG8 format.
      protected boolean needTransparentProcess(java.awt.image.BufferedImage subImage)
      Judges whether or not transparent processing is required in the specified pixel matrix
      void run() 
      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)
      Sets the bigTile information
      void setBlankSizeThreshold(int value)
      Sets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.
      void setCurrentTask(TileTask value)
      Binds the unit tile task.
      void setExecutingState(TaskExecutingState taskExecutingState)
      Sets task excuting state.
      void setKvStore(KeyValueStore kvStore)
      Sets the key-value storage.
      void setListener(TileBuilder.BuildTileProcessListener value)
      Sets the tile status listener
      void setLogger(LocLogger value)
      Sets the output log object.
      void setTaskStartTime(long time)
      Sets the task start time.
      void setTileStore(TileStore value)
      Sets tile storage.
      void setTransparent(boolean pTransparent)
      Sets whether the image is transparent.
      void setWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)
      Sets the white chart information list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSplitBigTileImageTask

        public DefaultSplitBigTileImageTask()
        
    • 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: SplitBigTileImageTask

        Sets the bigTile information

        Specified by:
        setBigTileInfo in interface SplitBigTileImageTask
      • setLogger

        public void setLogger(LocLogger value)
        

        Sets the output log object.

        Parameters:
        value -
      • run

        public void run()
        
        Specified by:
        run in interface java.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