public class Point extends Geometry
Geometry.GeometryType
Modifier and Type | Method and Description |
---|---|
static Point |
create(double[] xy,
SpatialReference sr)
Creates a new Point object using an array containing an x,y coordinate value and a spatial reference.
|
static Point |
create(double x,
double y,
SpatialReference sr)
Creates a new Point object using x, y, and a spatial reference.
|
static Point |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new Point object using a JSON object.
|
Point |
getOffset(double dx,
double dy)
Offsets the point in an x and y direction.
|
double |
getX()
X-coordinate of a point in map units.
|
double |
getY()
Y-coordinate of a point in map units.
|
Point |
setX(double x)
Sets x-coordinate of point.
|
Point |
setY(double y)
Sets y-coordinate of point.
|
java.lang.String |
toNiceString()
Return the point as a formated string
|
Point |
update(double dx,
double dy)
Updates a point.
|
fromJson, geographicToWebMercator, getExtentForScale, getJson, getJsonType, getLength, getLineIntersection, getScale, getSpatialReference, getType, isClockwise, setSpatialReference, toJson, toMapGeometry, toMapPoint, toScreenGeometry, toScreenPoint, webMercatorToGeographic
public static Point create(double x, double y, SpatialReference sr)
x
- - X-coordinate of a point in map units.y
- - Y-coordinate of a point in map units.sr
- - Spatial reference of the geometry.public static Point create(double[] xy, SpatialReference sr)
xy
- - An array that includes an x,y coordinate.sr
- - Spatial reference of the geometry.public static Point create(com.google.gwt.core.client.JavaScriptObject json)
json
- - A JSON object that contains an x,y coordinate.public final double getX()
public final double getY()
public final Point getOffset(double dx, double dy)
dx
- - Value for x-coordinate of point.dy
- - Value for y-coordinate of point.public final Point setX(double x)
x
- - Value for x-coordinate of point.public final Point setY(double y)
y
- - Value for y-coordinate of point.public final Point update(double dx, double dy)
dx
- - X-coordinate of the updated point.dy
- - Y-coordinate of the updated point.public final java.lang.String toNiceString()