com.nutiteq.components
Class MapTile

java.lang.Object
  extended by com.nutiteq.components.MapTile

public class MapTile
extends java.lang.Object

Object containing map tile location on the map (x, y coordinates of upper-left corner on whole map) and image data for that tile.


Constructor Summary
MapTile(int mapX, int mapY, int zoom, GeoMap map, com.nutiteq.maps.MapTilesRequestor screen)
          Not part of public API
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getData()
           
 java.lang.String getIDString()
          Not part of public API
 Image getImage()
          Not part of public API
 GeoMap getMap()
           
 long getSize()
          Not part of public API
 int getZoom()
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 boolean isVisible(MapPos centerPos, GeoMap displayedMap, int screenCenterX, int screenCenterY)
          Not part of public API Check if the map tile is visible.
 void notifyError()
          Not part of public API
 void setImagesData(byte[][] data)
          Not part of public API
 void setOverlayData(byte[][] overlay)
           
 boolean tryAgain()
          Not part of public API
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTile

public MapTile(int mapX,
               int mapY,
               int zoom,
               GeoMap map,
               com.nutiteq.maps.MapTilesRequestor screen)
Not part of public API

Method Detail

getX

public int getX()

getY

public int getY()

getZoom

public int getZoom()

getMap

public GeoMap getMap()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isVisible

public boolean isVisible(MapPos centerPos,
                         GeoMap displayedMap,
                         int screenCenterX,
                         int screenCenterY)
Not part of public API Check if the map tile is visible.

Parameters:
centerPos - the position of the center of the map
Returns:
true if visible, false otherwise

getIDString

public java.lang.String getIDString()
Not part of public API


getSize

public long getSize()
Not part of public API


notifyError

public void notifyError()
Not part of public API


setImagesData

public void setImagesData(byte[][] data)
Not part of public API


getImage

public Image getImage()
Not part of public API


tryAgain

public boolean tryAgain()
Not part of public API


getData

public byte[] getData()

setOverlayData

public void setOverlayData(byte[][] overlay)