|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getInteriorPoint, getShape, getShape, getShapeType, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, 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, closestPoints, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getDimension, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, reProject, rotate, scale, snapTo, 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 type
public 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 GeometrycloneGeometry in class AbstractPrimitivepublic Rectangle getBounds()
getBounds in interface ShapegetBounds in class BaseMultiPrimitivepublic Rectangle2D getBounds2D()
Geometry
getBounds2D in interface ShapegetBounds2D in interface GeometrygetBounds2D in class BaseMultiPrimitivepublic FShape cloneFShape()
FShape
cloneFShape in interface FShapecloneFShape in class BaseMultiPrimitivepublic int getNumgeometries()
public int getNumPoints()
public Point2D getPoint(int i)
public void transform(AffineTransform at)
Geometry
transform in interface Geometrytransform in interface FShapetransform in class BaseMultiPrimitiveat - The transformation to apply.AffineTransformpublic Envelope getEnvelope()
GeometryReturns 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 GeometrygetEnvelope in class BaseMultiPrimitivepublic void addPoint(Point point)
MultiPoint
addPoint in interface MultiPointpoint - The point to add
public void setPoints(double[] x,
double[] y)
public Point getPointAt(int index)
MultiPoint
getPointAt in interface MultiPointindex - The position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||