public static class Point.Float extends Point
Float class defines a point specified in float
precision.Point.Double, Point.Float| Modifier and Type | Field and Description |
|---|---|
float |
x
The X coordinate of this
Point. |
float |
y
The Y coordinate of this
Point. |
PRECISION_DOUBLE, PRECISION_FLOATGEOMETRY_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 |
|---|
Float()
Constructs and initializes a
Point with coordinates
(0, 0). |
Float(double x,
double y)
Constructs and initializes a
Point with the specified
coordinates. |
Float(Point point) |
| Modifier and Type | Method and Description |
|---|---|
Point.Float |
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 |
setLocation(float x,
float y)
Sets the location of this
Point to the specified
float coordinates. |
void |
setX(double x)
Returns the X coordinate of this
Point in
double precision. |
void |
setX(float x) |
void |
setY(double y)
Sets the Y coordinate of this
Point in
double precision. |
void |
setY(float y) |
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, translateasText, spatiallyEqualsfinalize, getClass, notify, notifyAll, wait, wait, waitasText, spatiallyEqualspublic float x
Point.public float y
Point.public Float()
Point with coordinates
(0, 0).public Float(double x,
double y)
Point with the specified
coordinates.x - The X coordinate of this Pointy - The Y coordinate of this Pointpublic Float(Point point)
public Point.Float clone()
Pointpublic 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 Pointx - The X coordinate of this Pointy - The Y coordinate of this Pointpublic void setLocation(float x,
float y)
Point to the specified
float coordinates.x - The X coordinate of this Pointy - The Y coordinate of this Pointpublic void setX(float x)
public void setY(float y)
public void setX(double x)
PointPoint in
double precision.public void setY(double y)
PointPoint in
double precision.public java.lang.String toString()
String that represents the value of this
Point.public Rectangle getBounds()
Geometrypublic void translate(double dx,
double dy)
Pointpublic Point[] serialize()
Geometrypublic int sizeOf()