Package nl.bebr.mapviewer.data.cache
Class TileCacheInfo
- java.lang.Object
-
- nl.bebr.mapviewer.data.cache.TileCacheInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_NAME_FORMAT
-
Constructor Summary
Constructors Constructor Description TileCacheInfo(int zoom, int x, int y)ConstructorTileCacheInfo(int zoom, int x, int y, String type)ConstructorTileCacheInfo(int zoom, int x, int y, String type, String extension)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPath()returns only filename, without zoom directory.StringgetType()intgetX()Gets x coordinateintgetY()Gets y coordinateintgetZoom()Gets zoom levelvoidsetExtension(String extension)voidsetType(String type)Type of the map - e.g. satellite, map, hybrid etc.StringtoString()
-
-
-
Field Detail
-
FILE_NAME_FORMAT
public static final String FILE_NAME_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileCacheInfo
public TileCacheInfo(int zoom, int x, int y)Constructor- Parameters:
zoom- zoom levelx- x coordinatesy- y coordinates
-
TileCacheInfo
public TileCacheInfo(int zoom, int x, int y, String type)Constructor- Parameters:
zoom-x-y-type-
-
-
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()
-
-