|
deegree 2.2 (2008/12/22 11:33 build-3038-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
abstract class AggregateImpl
default implementierung 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 |
| Constructor Summary | |
|---|---|
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 |
getIterator()
returns the aggregation as an iterator |
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()
returns the number of Geometry within the aggregation |
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()
returns true if no geometry stored within the collection. |
boolean |
isMember(Geometry gmo)
returns true if the submitted Geometry is within the aggregation |
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, 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, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, getTolerance, intersection, isWithinDistance, setTolerance, union |
| Field Detail |
|---|
protected ArrayList<Geometry> aggregate
| Constructor Detail |
|---|
public 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 Aggregate
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 Aggregate
public Geometry removeObjectAt(int index)
throws GeometryException
removeObjectAt in interface AggregateGeometryExceptionpublic void removeAll()
removeAll in interface Aggregatepublic Geometry getObjectAt(int index)
getObjectAt in interface Aggregatepublic Geometry[] getAll()
getAll in interface Aggregatepublic boolean isMember(Geometry gmo)
isMember in interface Aggregatepublic Iterator getIterator()
getIterator in interface Aggregatepublic boolean isEmpty()
isEmpty in interface GeometryisEmpty in class GeometryImplpublic void setCoordinateSystem(CoordinateSystem crs)
setCoordinateSystem in class GeometryImplcrs - new spatial reference systempublic void translate(double[] d)
dz- value will be ignored.
translate in interface Geometrytranslate in class GeometryImplpublic boolean equals(Object other)
GeometryImpl
equals in class GeometryImplother -
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.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net