public class MapTile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
MapTile(int x,
int y,
int zoom,
int frameNr)
Constructs a MapTile object based on coordinates, zoom level and frame number.
|
MapTile(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(MapTile obj) |
int |
getFrameNr()
Returns the time of this map tile.
|
long |
getTileId()
Returns the internal tile id of this map tile.
|
int |
getX()
Returns the x coordinate of this map tile.
|
int |
getY()
Returns the y coordinate of this map tile.
|
int |
getZoom()
Returns the zoom level of this map tile.
|
int |
hashCode()
Returns the hash value of this object.
|
java.lang.String |
toString()
Creates a string representation of this map tile, useful for logging.
|
public MapTile(long cPtr, boolean cMemoryOwn)
public MapTile(int x, int y, int zoom, int frameNr)
x
- The x coordinate of the tile.y
- The y coordinate of the tile.zoom
- The zoom level of the tile.frameNr
- The frame number of the tile.public static long getCPtr(MapTile obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getX()
public int getY()
public int getZoom()
public int getFrameNr()
public long getTileId()
public java.lang.String toString()
toString
in class java.lang.Object