public class Tile
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
Width and height of a map tile in pixels.
|
static int |
TILE_SIZE_MULTIPLE
Tile size multiple in pixels.
|
int |
tileX
The X number of this tile.
|
int |
tileY
The Y number of this tile.
|
byte |
zoomLevel
The Zoom level of this tile.
|
| Constructor and Description |
|---|
Tile(int tileX,
int tileY,
byte zoomLevel) |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateTileSize(float scaleFactor)
Calculate tile size (256px) with a scale factor.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static int SIZE
public static int TILE_SIZE_MULTIPLE
public final int tileX
public final int tileY
public final byte zoomLevel
public Tile(int tileX,
int tileY,
byte zoomLevel)
tileX - the X number of the tile.tileY - the Y number of the tile.zoomLevel - the zoom level of the tile.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static int calculateTileSize(float scaleFactor)