|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(GM_Object gmo)
adds an GM_Object to the aggregation |
GM_Object[] |
getAll()
returns all GM_Objects as array |
java.util.Iterator |
getIterator()
returns the aggregation as an iterator |
GM_Object |
getObjectAt(int index)
returns the GM_Object at the submitted index. |
int |
getSize()
returns the number of GM_Object within the aggregation |
void |
insertObjectAt(GM_Object gmo,
int index)
inserts a GM_Object 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(GM_Object gmo)
returns true if the submitted GM_Object is within the aggregation |
void |
merge(GM_Aggregate aggregate)
merges two aggregation. |
void |
removeAll()
removes all GM_Object from the aggregation. |
GM_Object |
removeObject(GM_Object gmo)
removes the submitted GM_Object from the aggregation |
GM_Object |
removeObjectAt(int index)
removes the GM_Object at the submitted index from the aggregation. |
void |
setObjectAt(GM_Object gmo,
int index)
sets the submitted GM_Object 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.geometry.GM_Object |
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, intersection, intersects, isEmpty, isWithinDistance, translate, union |
Method Detail |
public int getSize()
public void merge(GM_Aggregate aggregate) throws GM_Exception
GM_Exception
- a GM_Exception will be thrown if the submitted
isn't the same type as the recieving one.public void add(GM_Object gmo)
public void insertObjectAt(GM_Object gmo, int index) throws GM_Exception
gmo
- GM_Object to insert.index
- position where to insert the new GM_Object
GM_Exception
public void setObjectAt(GM_Object gmo, int index) throws GM_Exception
index
will be removed. if index is
larger then getSize() - 1 an exception will be thrown.
gmo
- GM_Object to set.index
- position where to set the new GM_Object
GM_Exception
public GM_Object removeObject(GM_Object gmo)
public GM_Object removeObjectAt(int index) throws GM_Exception
GM_Exception
public void removeAll()
public GM_Object getObjectAt(int index)
public GM_Object[] getAll()
public boolean isMember(GM_Object gmo)
public java.util.Iterator getIterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |