|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.mapitz.gwt.googleMaps.client.GPoint
public class GPoint
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.
| 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 |
|---|
public static GPoint create(int x,
int y)
public int getX()
public void setX(int x)
x - public int getY()
public void setY(int y)
y - public boolean equals(GPoint other)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||