com.google.gwt.maps.client.geom
Class Point
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.geom.Point
public class Point
- extends com.google.gwt.core.client.JavaScriptObject
A Point represents a point on the map by its pixel coordinates. It doesn't
represent a point on the earth by its geographical coordinates.
Geographical coordinates are now represented by LatLng
.
In the Google Maps coordinate system, the x coordinate increases to the
right, and the y coordinate increases downwards, though you may use Point
coordinates however you wish.
Constructor Summary |
protected |
Point()
|
Method Summary |
int |
getX()
Returns the X coordinate. |
int |
getY()
Returns the Y coordinate. |
static Point |
newInstance(int x,
int y)
|
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 |
Point
protected Point()
newInstance
public static Point newInstance(int x,
int y)
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.