Class TileCacheInfo


  • public class TileCacheInfo
    extends Object
    Transfer object with information about Tile
    Author:
    Frantisek Post
    • Constructor Detail

      • TileCacheInfo

        public TileCacheInfo​(int zoom,
                             int x,
                             int y)
        Constructor
        Parameters:
        zoom - zoom level
        x - x coordinates
        y - y coordinates
      • TileCacheInfo

        public TileCacheInfo​(int zoom,
                             int x,
                             int y,
                             String type)
        Constructor
        Parameters:
        zoom -
        x -
        y -
        type -
      • TileCacheInfo

        public TileCacheInfo​(int zoom,
                             int x,
                             int y,
                             String type,
                             String extension)
        Constructor
        Parameters:
        zoom -
        x -
        y -
        type -
        extension -
    • Method Detail

      • getX

        public int getX()
        Gets x coordinate
        Returns:
        x coordinate
      • getY

        public int getY()
        Gets y coordinate
        Returns:
        y coordinate
      • getZoom

        public int getZoom()
        Gets zoom level
        Returns:
        zoom level
      • getPath

        public String getPath()
        returns only filename, without zoom directory.

        This is because I need to create file with this name and don't want to parse it again to separate directory and filename

        Returns:
      • setExtension

        public void setExtension​(String extension)
      • setType

        public void setType​(String type)
        Type of the map - e.g. satellite, map, hybrid etc.
        Parameters:
        type -
      • getType

        public String getType()