com.supermap.services.components.impl

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
    • 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:
        setMap in interface MapTileBuilder
        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:
        setTask in interface TileBuilder
        Parameters:
        task -
        executingState -
        Since:
        6.1.3
      • setTileStore

        public void setTileStore(TileStore pTileStore)
        

        Sets the tiling memory

        Specified by:
        setTileStore in interface TileBuilder
        Parameters:
        pTileStore -
        Since:
        6.1.3
      • setMapName

        public void setMapName(java.lang.String pMapName)
        

        Set the map name

        Specified by:
        setMapName in interface MapTileBuilder
        Parameters:
        pMapName -
        Since:
        6.1.3
      • setOriginalPoint

        public void setOriginalPoint(Point2D pOriginalPoint)
        

        Sets the origin point of the map tile

        Specified by:
        setOriginalPoint in interface TileBuilder
        Parameters:
        pOriginalPoint -
        Since:
        6.1.3
      • setFormat

        public void setFormat(OutputFormat pFormat)
        

        Sets the tile format

        Specified by:
        setFormat in interface TileBuilder
        Parameters:
        pFormat -
        Since:
        6.1.3
      • setCompressionQuality

        public void setCompressionQuality(float compressionQuality)
        
      • setTileSize

        public void setTileSize(int pImageSize)
        

        Sets the tile size

        Specified by:
        setTileSize in interface TileBuilder
        Parameters:
        pImageSize -
        Since:
        6.1.3
      • setTransparent

        public void setTransparent(boolean pTransparent)
        

        Whether the settings are transparent

        Specified by:
        setTransparent in interface MapTileBuilder
        Parameters:
        pTransparent -
        Since:
        6.1.3
      • setTileVersion

        public void setTileVersion(java.lang.String tileVersion)
        

        Sets the tile version

        Specified by:
        setTileVersion in interface TileBuilder
        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:
        setKvStore in interface TileBuilder
        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: TileBuilder

        Initialize the tile generator

        Specified by:
        init in interface TileBuilder
      • run

        public void run()
        

        Executing entrance

        Specified by:
        run in interface java.lang.Runnable
        Since:
        6.1.3
      • dispose

        public void dispose()
        

        Log out the current object

        Specified by:
        dispose in interface TileBuilder
        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 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

        Specified by:
        getRunnable in interface TileBuilder
        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 -