public static class Point.Double extends Point
Double
class defines a point specified in
double
precision.Point.Double, Point.Float
Modifier and Type | Field and Description |
---|---|
double |
x
The X coordinate of this
Point . |
double |
y
The Y coordinate of this
Point . |
static Point |
ZERO_ZERO |
PRECISION_DOUBLE, PRECISION_FLOAT
GEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE
Constructor and Description |
---|
Double()
Constructs and initializes a
Point with coordinates
(0, 0). |
Double(double x,
double y)
Constructs and initializes a
Point with the specified
coordinates. |
Double(Point point) |
Modifier and Type | Method and Description |
---|---|
Point.Double |
clone()
Clones this geometry.
|
Rectangle |
getBounds()
Returns the minimum bounding rectangle of this geometry.
|
double |
getX()
Returns the X coordinate of this
Point in
double precision. |
double |
getY()
Returns the Y coordinate of this
Point in
double precision. |
Point[] |
serialize()
Returns this geometry as an array of Point.
|
void |
setLocation(double x,
double y)
Sets the location of this
Point to the specified
double coordinates. |
void |
setX(double x)
Returns the X coordinate of this
Point in
double precision. |
void |
setY(double y)
Sets the Y coordinate of this
Point in
double precision. |
int |
sizeOf()
Returns an approximation in bytes of the memory used by this geometry.
|
java.lang.String |
toString()
Returns a
String that represents the value of this
Point . |
void |
translate(double dx,
double dy)
Translates the point by the specified offset
|
area, boundary, createBounds, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, equals, getCenteredPoint, getGeometryId, getGeometryType, hashCode, length, pointIterator, setLocation, spatiallyEquals, spatiallyEquals, transform, translate
asText, spatiallyEquals
finalize, getClass, notify, notifyAll, wait, wait, wait
asText, spatiallyEquals
public static final Point ZERO_ZERO
public double x
Point
.public double y
Point
.public Double()
Point
with coordinates
(0, 0).public Double(double x, double y)
Point
with the specified
coordinates.x
- The X coordinate of this Point
y
- The Y coordinate of this Point
public Double(Point point)
public Point.Double clone()
Point
public double getX()
Point
in
double
precision.public double getY()
Point
in
double
precision.public void setLocation(double x, double y)
Point
to the specified
double
coordinates.setLocation
in class Point
x
- The X coordinate of this Point
y
- The Y coordinate of this Point
public void setX(double x)
Point
Point
in
double
precision.public void setY(double y)
Point
Point
in
double
precision.public java.lang.String toString()
String
that represents the value of this
Point
.public Rectangle getBounds()
Geometry
public void translate(double dx, double dy)
Point
public Point[] serialize()
Geometry
public int sizeOf()