|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.GeometryImpl
org.deegree.model.spatialschema.AggregateImpl
org.deegree.model.spatialschema.MultiPrimitiveImpl
org.deegree.model.spatialschema.MultiPointImpl
public class MultiPointImpl
default implementation of the MultiPoint interface of package deegree.model.spatialschema.
------------------------------------------------------------
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.spatialschema.AggregateImpl |
|---|
aggregate |
| Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Fields inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
| Constructor Summary | |
|---|---|
protected |
MultiPointImpl(CoordinateSystem crs)
Creates a new MultiPointImpl object. |
protected |
MultiPointImpl(Point[] gmp)
Creates a new MultiPointImpl object. |
protected |
MultiPointImpl(Point[] gmp,
CoordinateSystem crs)
Creates a new MultiPointImpl object. |
| Method Summary | |
|---|---|
void |
addPoint(Point gmp)
adds a Point to the aggregation |
protected void |
calculateParam()
calculates the centroid and envelope of the aggregation |
Object |
clone()
|
Point[] |
getAllPoints()
returns all Points as array |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Point |
getPointAt(int index)
returns the Point at the submitted index. |
void |
insertPointAt(Point gmp,
int index)
inserts a Point into the aggregation. all elements with an index equal or larger index will be moved. if index is larger then getSize() - 1 or smaller then 0 or gmp equals null an exception will be thrown. |
Point |
removePoint(Point gmp)
removes the submitted Point from the aggregation |
Point |
removePointAt(int index)
removes the Point at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
void |
setPointAt(Point gmp,
int index)
sets the submitted Point at the submitted index. the element at the position index will be
removed. if index is larger then getSize() - 1 or smaller then 0 or gmp equals null an exception will be thrown. |
| Methods inherited from class org.deegree.model.spatialschema.MultiPrimitiveImpl |
|---|
getAllPrimitives, getPrimitiveAt, merge |
| Methods inherited from class org.deegree.model.spatialschema.AggregateImpl |
|---|
add, equals, getAll, getIterator, getObjectAt, getSize, insertObjectAt, intersects, isEmpty, isMember, removeAll, removeObject, removeObjectAt, setCoordinateSystem, setObjectAt, toString, translate |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setEmpty, setTolerance, setValid, union |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.spatialschema.MultiPrimitive |
|---|
getAllPrimitives, getPrimitiveAt |
| Methods inherited from interface org.deegree.model.spatialschema.Aggregate |
|---|
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeAll, removeObject, removeObjectAt, setObjectAt |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
| Constructor Detail |
|---|
protected MultiPointImpl(CoordinateSystem crs)
crs - protected MultiPointImpl(Point[] gmp)
gmp -
protected MultiPointImpl(Point[] gmp,
CoordinateSystem crs)
gmp - crs - | Method Detail |
|---|
public void addPoint(Point gmp)
addPoint in interface MultiPoint
public void insertPointAt(Point gmp,
int index)
throws GeometryException
insertPointAt in interface MultiPointgmp - Point to insert.index - position where to insert the new Point
GeometryException
public void setPointAt(Point gmp,
int index)
throws GeometryException
index will be
removed. if index is larger then getSize() - 1 or smaller then 0 or gmp equals null an exception will be thrown.
setPointAt in interface MultiPointgmp - Point to set.index - position where to set the new Point
GeometryExceptionpublic Point removePoint(Point gmp)
removePoint in interface MultiPointgmp - to remove
public Point removePointAt(int index)
throws GeometryException
removePointAt in interface MultiPointGeometryExceptionpublic Point getPointAt(int index)
getPointAt in interface MultiPointpublic Point[] getAllPoints()
getAllPoints in interface MultiPointprotected void calculateParam()
calculateParam in class MultiPrimitiveImplpublic int getDimension()
Geometry
getDimension in interface GeometrygetDimension in class MultiPrimitiveImplpublic int getCoordinateDimension()
Geometry
getCoordinateDimension in interface GeometrygetCoordinateDimension in class MultiPrimitiveImplpublic Object clone()
clone in class GeometryImpl
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org