com.google.gwt.maps.client.geom
Class TileIndex

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.geom.TileIndex

public class TileIndex
extends com.google.gwt.core.client.JavaScriptObject

Specifies the position of a Tile in the map. Used as an argument to Projection.tileCheckRange(TileIndex,int,int)


Constructor Summary
protected TileIndex()
           
 
Method Summary
 int getX()
          Returns the X coordinate.
 int getY()
          Returns the Y coordinate.
static Point newInstance(int x, int y)
          Construct a new TileIndex instance.
 void setX(int x)
          Sets the X coordinate.
 void setY(int y)
          Sets the Y coordinate.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TileIndex

protected TileIndex()
Method Detail

newInstance

public static final Point newInstance(int x,
                                      int y)
Construct a new TileIndex instance. This is a representation of the Maps API GPoint object used for TileLayer operations.

Parameters:
x - the x coordinate
y - the y coordinate
Returns:
a new instance of a TileIndex option

getX

public final int getX()
Returns the X coordinate.

Returns:
the X coordinate.

getY

public final int getY()
Returns the Y coordinate.

Returns:
the Y coordinate.

setX

public final void setX(int x)
Sets the X coordinate.

Parameters:
x - the X coordinate.

setY

public final void setY(int y)
Sets the Y coordinate.

Parameters:
y - the Y coordinate.