|
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 |
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.
-----------------------------------------------------
Method Summary | |
---|---|
void |
add(Geometry gmo)
adds an Geometry to the aggregation |
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. |
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 an exception will be thrown. |
boolean |
isMember(Geometry gmo)
returns true if the submitted Geometry is within the aggregation |
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, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
Method Detail |
---|
int getSize()
void merge(Aggregate aggregate) throws GeometryException
GeometryException
- a GeometryException will be thrown if the submitted isn't the same type as the
recieving one.void add(Geometry gmo)
void 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)
Geometry removeObjectAt(int index) throws GeometryException
GeometryException
void removeAll()
Geometry getObjectAt(int index)
Geometry[] getAll()
boolean isMember(Geometry gmo)
Iterator getIterator()
|
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