|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive org.gvsig.fmap.geom.aggregate.impl.MultiPoint2D
public class MultiPoint2D
Multipunto 2D.
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 class org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive |
---|
geometries |
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
---|
geometryType, geomManager, id, projection |
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 |
Constructor Summary | |
---|---|
MultiPoint2D(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType #create()
to create the geometry |
|
MultiPoint2D(GeometryType geometryType,
String id,
org.cresques.cts.IProjection projection,
Point2D[] points)
|
Method Summary | |
---|---|
void |
addPoint(Point point)
Adds a new point to the multipoint |
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one. |
Geometry |
cloneGeometry()
Creates a clone of this geometry. |
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
Returns this geometry's boundary rectangle. |
Envelope |
getEnvelope()
Returns the minimum bounding box for this Geometry. |
int |
getNumgeometries()
Deprecated. use getPrimitivesNumber |
int |
getNumPoints()
Deprecated. use getPrimitivesNumber |
Point2D |
getPoint(int i)
|
Point |
getPointAt(int index)
Gets the point that is on a concrete position inside the multi point |
void |
setPoints(double[] x,
double[] y)
|
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry. |
Methods inherited from class org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive |
---|
addPrimitive, contains, contains, contains, contains, fastIntersects, getDimension, getGeneralPath, getGeometries, getHandlers, getInternalShape, getPathIterator, getPathIterator, getPrimitiveAt, getPrimitivesNumber, getSelectHandlers, getStretchingHandlers, intersects, intersects, isSimple, reProject |
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
---|
area, buffer, centroid, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getShape, getShape, getShapeType, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, toString, touches, transform, union, within |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.gvsig.fmap.geom.aggregate.MultiPrimitive |
---|
addPrimitive |
Methods inherited from interface org.gvsig.fmap.geom.aggregate.Aggregate |
---|
getPrimitiveAt, getPrimitivesNumber |
Methods inherited from interface org.gvsig.fmap.geom.Geometry |
---|
area, buffer, centroid, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getDimension, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, union, within |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, intersects |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public MultiPoint2D(GeometryType geometryType)
GeometryType
#create()
to create the geometry
type
- The geometry typepublic MultiPoint2D(GeometryType geometryType, String id, org.cresques.cts.IProjection projection, Point2D[] points)
geometryType
- id
- projection
- points
- Method Detail |
---|
public Geometry cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
cloneGeometry
in class AbstractPrimitive
public Rectangle getBounds()
getBounds
in interface Shape
getBounds
in class BaseMultiPrimitive
public Rectangle2D getBounds2D()
Geometry
getBounds2D
in interface Shape
getBounds2D
in interface Geometry
getBounds2D
in class BaseMultiPrimitive
public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
cloneFShape
in class BaseMultiPrimitive
public int getNumgeometries()
public int getNumPoints()
public Point2D getPoint(int i)
public void transform(AffineTransform at)
Geometry
transform
in interface Geometry
transform
in interface FShape
transform
in class BaseMultiPrimitive
at
- The transformation to apply.AffineTransform
public Envelope getEnvelope()
Geometry
Returns the minimum bounding box for this Geometry. This shall be the coordinate region spanning the minimum and maximum value for each ordinate taken on by DirectPositions in this Geometry. The simplest representation for an envelope consists of two DirectPositions, the first one containing all the minimums for each ordinate, and second one containing all the maximums.
getEnvelope
in interface Geometry
getEnvelope
in class BaseMultiPrimitive
public void addPoint(Point point)
MultiPoint
addPoint
in interface MultiPoint
point
- The point to addpublic void setPoints(double[] x, double[] y)
public Point getPointAt(int index)
MultiPoint
getPointAt
in interface MultiPoint
index
- The position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |