|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Aggregate
This interface defines the basis functionallity of all geometry aggregations. it will be specialized for the use of primitive, and solid geometries.
-----------------------------------------------------
Field Summary |
---|
Fields inherited from interface org.deegree.model.spatialschema.Geometry |
---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
Method Summary | |
---|---|
void |
add(Geometry gmo)
adds an Geometry to the aggregation |
Geometry[] |
getAll()
|
java.util.Iterator<Geometry> |
getIterator()
|
Geometry |
getObjectAt(int index)
|
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 an exception will be thrown. |
boolean |
isMember(Geometry gmo)
|
void |
merge(Aggregate aggregate)
merges two aggregation. |
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 an exception will be thrown. |
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 an exception will be thrown. |
Methods inherited from interface org.deegree.model.spatialschema.Geometry |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
Method Detail |
---|
int getSize()
void merge(Aggregate aggregate) throws GeometryException
aggregate
-
GeometryException
- a GeometryException will be thrown if the submitted isn't the same type as the recieving one.void add(Geometry gmo)
gmo
- Geometry to the aggregationvoid insertObjectAt(Geometry gmo, int index) throws GeometryException
gmo
- Geometry to insert.index
- position where to insert the new Geometry
GeometryException
void setObjectAt(Geometry gmo, int index) throws GeometryException
index
will be
removed. if index is larger then getSize() - 1 an exception will be thrown.
gmo
- Geometry to set.index
- position where to set the new Geometry
GeometryException
Geometry removeObject(Geometry gmo)
gmo
- to remove
Geometry removeObjectAt(int index) throws GeometryException
index
-
GeometryException
void removeAll()
Geometry getObjectAt(int index)
index
- to get
Geometry[] getAll()
boolean isMember(Geometry gmo)
gmo
-
java.util.Iterator<Geometry> getIterator()
|
deegree 2.5 (2011/06/29 09:44 build-8-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