org.gvsig.fmap.geom.primitive
Interface Point

All Superinterfaces:
Comparable, Geometry, Primitive, Serializable, Shape
All Known Implementing Classes:
Point2D, Point2DZ

public interface Point
extends Primitive

This interface is equivalent to the GM_Point specified in ISO 19107. It is the basic data type for a geometric object consisting of one and only one point.

Author:
Jorge Piera
See Also:
ISO 19107

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES
 
Field Summary
 
Fields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
 
Method Summary
 double getCoordinateAt(int dimension)
          Gets the coordinate in a concrete dimension
 double[] getCoordinates()
          Deprecated. Use getCoordinateAt(int) instead
 DirectPosition getDirectPosition()
          Gets the of a point, that is composed by a set of ordinates
 double getX()
          Returns the X coordinate
 double getY()
          Returns the Y coordinate
 void setCoordinateAt(int dimension, double value)
          Sets a ordinate in a concrete dimension
 void setCoordinates(double[] values)
          Deprecated. Use #setCoordinateAt(int, double)) instead
 void setX(double x)
          Sets the X coordinate
 void setY(double y)
          Sets the Y coordinate
 
Methods inherited from interface org.gvsig.fmap.geom.Geometry
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, transform, union, within
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersects
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDirectPosition

DirectPosition getDirectPosition()
Gets the of a point, that is composed by a set of ordinates

Returns:
The direct position

setCoordinateAt

void setCoordinateAt(int dimension,
                     double value)
Sets a ordinate in a concrete dimension

Parameters:
dimension - The dimension to set
value - The value to set

setCoordinates

void setCoordinates(double[] values)
Deprecated. Use #setCoordinateAt(int, double)) instead

Sets the point coordinates

Parameters:
value - The coordinates to set

setX

void setX(double x)
Sets the X coordinate

Parameters:
x - The value to set

setY

void setY(double y)
Sets the Y coordinate

Parameters:
y - The value to set

getCoordinateAt

double getCoordinateAt(int dimension)
Gets the coordinate in a concrete dimension

Parameters:
dimension - The ordinate dimension
Returns:
The value of the ordinate

getCoordinates

double[] getCoordinates()
Deprecated. Use getCoordinateAt(int) instead

Returns an array of coordinates. Don't use the provided array to modify the point coordinates, but use the #setCoordinateAt(int, double)) , #setX(double)) or #setY(double)) methods instead.

Returns:
The point coordinates

getX

double getX()
Returns the X coordinate

Returns:
The X coordinate

getY

double getY()
Returns the Y coordinate

Returns:
The Y coordinate


Copyright © 2004-2012 gvSIG. All Rights Reserved.