com.supermap.data.processing

类 Tile

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.data.InternalHandleDisposable
        • com.supermap.data.processing.Tile
  • 所有已实现的接口:
    IDisposable


    public class Tile
    extends com.supermap.data.InternalHandleDisposable
    缓存瓦片类,用来获取缓存瓦片的相关信息。
    • 构造器详细资料

      • Tile

        public Tile()
        默认构造函数。
    • 方法详细资料

      • getRow

        public int getRow()
        返回瓦片行号。
        返回:
        瓦片行号。
      • getColumn

        public int getColumn()
        返回瓦片列号。
        返回:
        瓦片列号。
      • getBounds

        public Rectangle2D getBounds()
        返回瓦片的地理范围。
        返回:
        瓦片的地理范围。
      • getScale

        public double getScale()
        返回瓦片所属比例尺。
        返回:
        瓦片所属比例尺。
      • getData

        public byte[] getData()
        返回瓦片数据。
        返回:
        瓦片数据。
      • dispose

        public void dispose()
        释放 Tile 对象占用的资源。
      • getTileSize

        public TileSize getTileSize()
        返回瓦片的大小。
        返回:
        瓦片的大小。
      • getType

        public TileFormat getType()
        返回瓦片数据格式。
        返回:
        瓦片数据格式。
      • setColumn

        public void setColumn(int column)
        设置瓦片列值。
        参数:
        column - 列值。
        抛出:
        IllegalStateException - 当前对象已被释放。
      • setRow

        public void setRow(int row)
        设置瓦片行值。
        参数:
        row - 行值。
        抛出:
        IllegalStateException - 当前对象已被释放。
      • setScale

        public void setScale(double scale)
        设置瓦片所在层级比例尺。
        参数:
        scale - 比例尺值。
        抛出:
        IllegalStateException - 当前对象已被释放。
      • setData

        public void setData(byte[] data)
        设置瓦片文件流字节数组。
        参数:
        data - 字节数组。
        抛出:
        IllegalStateException - 当前对象已被释放。
        IllegalArgumentException - data参数为null异常。
      • setIsDisposable

        public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj,
                                           boolean disposable)

Copyright © 2021–2024 SuperMap. All rights reserved.