|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Geometry
com.esri.core.geometry.Point
public final class Point
A Point is a zero-dimensional object that represents a specific (X,Y) location in a two-dimensional XY-Plane. In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
|---|
Geometry.Type |
| Field Summary |
|---|
| Fields inherited from class com.esri.core.geometry.Geometry |
|---|
m_description, m_touchFlag |
| Constructor Summary | |
|---|---|
Point()
Creates an empty 2D point. |
|
Point(double x,
double y)
Creates a 2D Point with specified X and Y coordinates. |
|
Point(double x,
double y,
double z)
Creates a 3D point with specified X, Y and Z coordinates. |
|
| Method Summary | |
|---|---|
void |
applyTransformation(Transformation2D transform)
Applies 2D affine transformation in XY plane. |
void |
copyTo(Geometry dst)
Copies this geometry to another geometry of the same type. |
Geometry |
createInstance()
Creates an instance of an empty geometry of the same type. |
boolean |
equals(Object _other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry. |
int |
getDimension()
Returns the topological dimension of the geometry object based on the geometry's type. |
Geometry.Type |
getType()
Returns the geometry type. |
double |
getX()
Returns the X coordinate of the point. |
double |
getY()
Returns the Y coordinate of this point. |
int |
hashCode()
Returns the hash code for the point. |
boolean |
isEmpty()
Indicates if the geometry object contains geometric information. |
void |
queryEnvelope(Envelope env)
Gets the axis aligned bounding box of the geometry. |
void |
setEmpty()
Sets the geometry to its original initialization state by releasing all data referenced by the geometry. |
void |
setX(double x)
Sets the X coordinate of the point. |
void |
setXY(double x,
double y)
Set the X and Y coordinate of the point. |
void |
setY(double y)
Sets the Y coordinate of this point. |
| Methods inherited from class com.esri.core.geometry.Geometry |
|---|
_getImpl, calculateArea2D, calculateLength2D, copy, getDimensionFromType, getStateFlag, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Point()
public Point(double x,
double y)
x - The X coordinate of the new 2D point.y - The Y coordinate of the new 2D point.
public Point(double x,
double y,
double z)
x - The X coordinate of the new 3D point.y - The Y coordinate of the new 3D point.z - The Z coordinate of the new 3D point.| Method Detail |
|---|
public final double getX()
public void setX(double x)
x - The X coordinate to be set for this point.public final double getY()
public void setY(double y)
y - The Y coordinate to be set for this point.public Geometry.Type getType()
Geometry
getType in class Geometrypublic int getDimension()
GeometryReturns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
getDimension in class Geometrypublic void setEmpty()
Geometry
setEmpty in class Geometrypublic void applyTransformation(Transformation2D transform)
Geometry
applyTransformation in class Geometrytransform - The affine transformation to be applied to this geometry.public void copyTo(Geometry dst)
Geometry
copyTo in class Geometrydst - the dstpublic Geometry createInstance()
Geometry
public boolean isEmpty()
Geometry
isEmpty in class Geometrypublic void queryEnvelope(Envelope env)
Geometry
queryEnvelope in class Geometryenv - The envelope to return the result in.
public void setXY(double x,
double y)
x - X coordinate of the point.y - Y coordinate of the point.public boolean equals(Object _other)
equals in class Object_other - the _other
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||