com.mapitz.gwt.googleMaps.client
Class GPoint

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GPoint

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

A GPoint represents a point on the map by its pixel coordinates. Notice that in v2, it doesn't represent a point on the earth by its geographical coordinates anymore. Geographical coordinates are now represented by GLatLng.
In the map coordinate system, the x coordinate increases to the left, and the y coordinate increases downwards.
Notice that while the two parameters of a GPoint are accessible as properties x and y, it is better to never modify them, but to create a new object with different paramaters instead.

Author:
aglaforge

Method Summary
static GPoint create(int x, int y)
           
 boolean equals(GPoint other)
           
 int getX()
          x Number x coordinate, increases to the left.
 int getY()
          y Number y coordinate, increases downwards.
 void setX(int x)
          x Number x coordinate, increases to the left.
 void setY(int y)
          y Number y coordinate, increases downwards.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GPoint create(int x,
                            int y)

getX

public int getX()
x Number x coordinate, increases to the left.

Returns:

setX

public void setX(int x)
x Number x coordinate, increases to the left.

Parameters:
x -

getY

public int getY()
y Number y coordinate, increases downwards.

Returns:

setY

public void setY(int y)
y Number y coordinate, increases downwards.

Parameters:
y -

equals

public boolean equals(GPoint other)