public class Point2DGeometryType extends AbstractGeometryType implements PointGeometryType
Point2D objects.| Constructor and Description |
|---|
Point2DGeometryType() |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
create()
This method creates a
Geometry with the type specified
by this class. |
Point |
createPoint(double[] coordinates)
Creates a new point object
|
Point |
createPoint(double x,
double y)
Creates a new point object
|
java.lang.String |
getName() |
int |
getSubType() |
int |
getType() |
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType.
|
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type.
|
equals, getGeometryOperation, getGeometryOperations, hasM, hasZ, isSubTypeOf, isTypeOf, setGeometryOperation, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDimension, getFullName, getGeometryOperation, hasM, hasZ, isSubTypeOf, isTypeOf, setGeometryOperation, toStringpublic java.lang.String getName()
getName in interface GeometryTypepublic int getType()
getType in interface GeometryTypeGeometry.TYPES
The type is an abstract representation of the object (Point, Curve...)
but it is not a concrete representation (Point2D, Point3D...).public int getSubType()
getSubType in interface GeometryTypeGeometry.SUBTYPES.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)public boolean isTypeOf(int geometryType)
GeometryTypeisTypeOf in interface GeometryTypegeometryType - the value of the Geometry.TYPES to check if is
it super typepublic boolean isSubTypeOf(int geometrySubType)
GeometryTypeisSubTypeOf in interface GeometryTypegeometrySubType - the value of the Geometry.SUBTYPES to check if is
it super subTypepublic Geometry create() throws CreateGeometryException
GeometryTypeGeometry with the type specified
by this class. The geometry is empty, and all the internal
attributes must be assigned to a value when the geometry has
been created.create in interface GeometryTypeCreateGeometryExceptionpublic Point createPoint(double x, double y)
PointGeometryTypecreatePoint in interface PointGeometryTypex - the x coordinate of the pointy - the y coordinate of the pointpublic Point createPoint(double[] coordinates)
PointGeometryTypecreatePoint in interface PointGeometryTypecoordinates - the coordinates of the point