public class Point2D extends AbstractPrimitive implements org.gvsig.fmap.geom.primitive.Point, org.gvsig.fmap.geom.DirectPosition
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COORDINATES_FIELD |
protected double |
x |
protected double |
y |
geometryType, geomManager, id, logger, projection| Constructor and Description |
|---|
Point2D(double x,
double y) |
Point2D(org.gvsig.fmap.geom.type.GeometryType geometryType)
The constructor with the GeometryType like and argument
is used by the
GeometryType#create() to create the
geometry |
Point2D(org.gvsig.fmap.geom.type.GeometryType geometryType,
double x,
double y) |
Point2D(int type,
int subtype) |
Point2D(java.awt.geom.Point2D point) |
| Modifier and Type | Method and Description |
|---|---|
org.gvsig.fmap.geom.generalpath.gputils.FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(java.awt.geom.Point2D p) |
boolean |
contains(java.awt.geom.Rectangle2D r) |
boolean |
equals(java.lang.Object other) |
java.awt.Rectangle |
getBounds() |
java.awt.geom.Rectangle2D |
getBounds2D() |
double |
getCoordinateAt(int dimension) |
double[] |
getCoordinates() |
int |
getDimension() |
org.gvsig.fmap.geom.DirectPosition |
getDirectPosition() |
org.gvsig.fmap.geom.primitive.Envelope |
getEnvelope() |
protected java.lang.String |
getFullTypeName() |
org.gvsig.fmap.geom.primitive.GeneralPathX |
getGeneralPath() |
double |
getOrdinate(int dim) |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at) |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness) |
org.gvsig.fmap.geom.handler.Handler[] |
getSelectHandlers()
Returns the handlers used to select the geometries.
|
java.awt.Shape |
getShape(java.awt.geom.AffineTransform affineTransform) |
int |
getShapeType()
Gets the geometry type of this shape.
|
org.gvsig.fmap.geom.handler.Handler[] |
getStretchingHandlers()
Returns the handlers they utilized to stretch the geometries.
|
int |
getType() |
double |
getX() |
double |
getY() |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(java.awt.geom.Rectangle2D r) |
void |
reProject(org.cresques.cts.ICoordTrans ct)
Re-projects this shape using transformation coordinates.
|
void |
setCoordinateAt(int dimension,
double value) |
void |
setCoordinates(double[] values) |
void |
setX(double x) |
void |
setY(double y) |
org.gvsig.fmap.geom.aggregate.MultiPoint |
toPoints() |
java.lang.String |
toString() |
void |
transform(java.awt.geom.AffineTransform at)
Aplica la transformaciónn de la matriz de transformación que se pasa como
parámetro.
|
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getShape, getSRS, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, touches, transform, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarea, buffer, centroid, cloneGeometry, closestPoints, contains, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getShape, getValidationStatus, intersection, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, touches, union, withinprotected static final java.lang.String COORDINATES_FIELD
protected double x
protected double y
public Point2D(double x,
double y)
public Point2D(org.gvsig.fmap.geom.type.GeometryType geometryType)
GeometryType#create() to create the
geometrytype - The geometry typepublic Point2D(org.gvsig.fmap.geom.type.GeometryType geometryType,
double x,
double y)
public Point2D(int type,
int subtype)
public Point2D(java.awt.geom.Point2D point)
public org.gvsig.fmap.geom.generalpath.gputils.FShape cloneFShape()
FShapecloneFShape in interface org.gvsig.fmap.geom.generalpath.gputils.FShapepublic boolean contains(double x,
double y)
contains in interface java.awt.Shapepublic boolean contains(double x,
double y,
double w,
double h)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Point2D p)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Rectangle2D r)
contains in interface java.awt.Shapepublic boolean equals(java.lang.Object other)
equals in class AbstractPrimitivepublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.Shapepublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface java.awt.ShapegetBounds2D in interface org.gvsig.fmap.geom.Geometrypublic double getCoordinateAt(int dimension)
getCoordinateAt in interface org.gvsig.fmap.geom.primitive.Pointpublic double[] getCoordinates()
getCoordinates in interface org.gvsig.fmap.geom.primitive.Pointpublic int getDimension()
getDimension in interface org.gvsig.fmap.geom.DirectPositiongetDimension in interface org.gvsig.fmap.geom.Geometrypublic org.gvsig.fmap.geom.DirectPosition getDirectPosition()
getDirectPosition in interface org.gvsig.fmap.geom.primitive.Pointpublic org.gvsig.fmap.geom.primitive.Envelope getEnvelope()
getEnvelope in interface org.gvsig.fmap.geom.Geometryprotected java.lang.String getFullTypeName()
public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath()
getGeneralPath in interface org.gvsig.fmap.geom.Geometrypublic double getOrdinate(int dim)
getOrdinate in interface org.gvsig.fmap.geom.DirectPositionpublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator in interface java.awt.ShapegetPathIterator in interface org.gvsig.fmap.geom.Geometrypublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
getPathIterator in interface java.awt.ShapegetPathIterator in interface org.gvsig.fmap.geom.Geometrypublic org.gvsig.fmap.geom.handler.Handler[] getSelectHandlers()
FShapegetSelectHandlers in interface org.gvsig.fmap.geom.generalpath.gputils.FShapepublic java.awt.Shape getShape(java.awt.geom.AffineTransform affineTransform)
getShape in interface org.gvsig.fmap.geom.GeometrygetShape in class AbstractPrimitivepublic int getShapeType()
FShapegetShapeType in interface org.gvsig.fmap.geom.generalpath.gputils.FShapegetShapeType in class AbstractPrimitivepublic org.gvsig.fmap.geom.handler.Handler[] getStretchingHandlers()
FShapegetStretchingHandlers in interface org.gvsig.fmap.geom.generalpath.gputils.FShapepublic int getType()
getType in interface org.gvsig.fmap.geom.GeometrygetType in class AbstractPrimitivepublic double getX()
getX in interface org.gvsig.fmap.geom.primitive.Pointpublic double getY()
getY in interface org.gvsig.fmap.geom.primitive.Pointpublic boolean intersects(double x,
double y,
double w,
double h)
intersects in interface java.awt.Shapepublic boolean intersects(java.awt.geom.Rectangle2D r)
intersects in interface java.awt.Shapeintersects in interface org.gvsig.fmap.geom.Geometrypublic void reProject(org.cresques.cts.ICoordTrans ct)
FShapereProject in interface org.gvsig.fmap.geom.generalpath.gputils.FShapereProject in interface org.gvsig.fmap.geom.Geometryct - the transformation coordinatespublic void setCoordinateAt(int dimension,
double value)
setCoordinateAt in interface org.gvsig.fmap.geom.primitive.Pointpublic void setCoordinates(double[] values)
setCoordinates in interface org.gvsig.fmap.geom.primitive.Pointpublic void setX(double x)
setX in interface org.gvsig.fmap.geom.primitive.Pointpublic void setY(double y)
setY in interface org.gvsig.fmap.geom.primitive.Pointpublic org.gvsig.fmap.geom.aggregate.MultiPoint toPoints()
throws org.gvsig.fmap.geom.GeometryException
toPoints in interface org.gvsig.fmap.geom.primitive.Pointorg.gvsig.fmap.geom.GeometryExceptionpublic java.lang.String toString()
toString in class AbstractPrimitivepublic void transform(java.awt.geom.AffineTransform at)
transform in interface org.gvsig.fmap.geom.generalpath.gputils.FShapetransform in interface org.gvsig.fmap.geom.Geometryat - Matriz de transformación.AffineTransformCopyright © 2015 gvSIG Association. All Rights Reserved.