|
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
public abstract class AggregateImpl
default implementation of the Aggregate interface ------------------------------------------------------------
| Field Summary | |
|---|---|
protected ArrayList<Geometry> |
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 |
AggregateImpl(CoordinateSystem crs)
Creates a new AggregateImpl object. |
| Method Summary | |
|---|---|
void |
add(Geometry gmo)
adds an Geometry to the aggregation |
boolean |
equals(Object other)
Compares the Geometry to be equal to another Geometry. |
Geometry[] |
getAll()
returns all Geometries as array |
Iterator<Geometry> |
getIterator()
|
Geometry |
getObjectAt(int index)
returns the Geometry at the submitted index. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
int |
getSize()
|
void |
insertObjectAt(Geometry gmo,
int index)
inserts a Geometry in 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 gmo equals null an exception will be thrown. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isEmpty()
|
boolean |
isMember(Geometry gmo)
|
void |
merge(Aggregate aggregate)
merges this aggregation with another one |
void |
removeAll()
removes all Geometry from the aggregation. |
Geometry |
removeObject(Geometry gmo)
removes the submitted Geometry from the aggregation |
Geometry |
removeObjectAt(int index)
removes the Geometry at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
void |
setCoordinateSystem(CoordinateSystem crs)
sets the spatial reference system |
void |
setObjectAt(Geometry gmo,
int index)
sets the submitted Geometry 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 gmo equals null an exception will be thrown. |
String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. the dz- value will be ignored. |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
calculateParam, clone, 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.Geometry |
|---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, getTolerance, intersection, isWithinDistance, setTolerance, union |
| Field Detail |
|---|
protected ArrayList<Geometry> aggregate
| Constructor Detail |
|---|
protected AggregateImpl(CoordinateSystem crs)
crs - | Method Detail |
|---|
public int getSize()
getSize in interface Aggregate
public void merge(Aggregate aggregate)
throws GeometryException
merge in interface AggregateGeometryException - a GeometryException will be thrown if the submitted isn't the same type as the recieving one.public void add(Geometry gmo)
add in interface Aggregategmo - Geometry to the aggregation
public void insertObjectAt(Geometry gmo,
int index)
throws GeometryException
insertObjectAt in interface Aggregategmo - Geometry to insert.index - position where to insert the new Geometry
GeometryException
public void setObjectAt(Geometry gmo,
int index)
throws GeometryException
index will be
removed. if index is larger then getSize() - 1 or smaller then 0 or gmo equals null an exception will be thrown.
setObjectAt in interface Aggregategmo - Geometry to set.index - position where to set the new Geometry
GeometryExceptionpublic Geometry removeObject(Geometry gmo)
removeObject in interface Aggregategmo - to remove
public Geometry removeObjectAt(int index)
throws GeometryException
removeObjectAt in interface AggregateGeometryExceptionpublic void removeAll()
removeAll in interface Aggregatepublic Geometry getObjectAt(int index)
getObjectAt in interface Aggregateindex - to get
public Geometry[] getAll()
getAll in interface Aggregatepublic boolean isMember(Geometry gmo)
isMember in interface Aggregatepublic Iterator<Geometry> getIterator()
getIterator in interface Aggregatepublic boolean isEmpty()
isEmpty in interface GeometryisEmpty in class GeometryImplpublic void setCoordinateSystem(CoordinateSystem crs)
GeometryImpl
setCoordinateSystem in class GeometryImplcrs - new spatial reference systempublic void translate(double[] d)
dz- value will be ignored.
translate in interface Geometrytranslate in class GeometryImpld - vector to translate the geometry withpublic boolean equals(Object other)
GeometryImpl
equals in class GeometryImplother - the Geometry to test for equality
public boolean intersects(Geometry gmo)
intersects in interface Geometryintersects in class GeometryImplgmo - the Geometry to intersect with
public String toString()
toString 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