|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.model.geometry.GM_Object_Impl
org.deegree_impl.model.geometry.GM_Aggregate_Impl
default implementierung of the GM_Aggregate interface ------------------------------------------------------------
| Field Summary | |
protected java.util.ArrayList |
aggregate
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
| Fields inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Constructor Summary | |
private |
GM_Aggregate_Impl()
Creates a new GM_Aggregate_Impl object. |
|
GM_Aggregate_Impl(CS_CoordinateSystem crs)
Creates a new GM_Aggregate_Impl object. |
| Method Summary | |
void |
add(GM_Object gmo)
adds an GM_Object to the aggregation |
boolean |
equals(java.lang.Object other)
Compares the GM_Object to be equal to another GM_Object. |
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. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
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 or smaller then 0 or gmo equals null an exception will be thrown. |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
boolean |
isEmpty()
returns true if no geometry stored within the collection. |
boolean |
isMember(GM_Object gmo)
returns true if the submitted GM_Object is within the aggregation |
void |
merge(GM_Aggregate aggregate)
merges this aggregation with another one |
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 |
setCoordinateSystem(CS_CoordinateSystem crs)
sets the spatial reference system |
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 or smaller then 0 or gmo equals null
an exception will be thrown. |
java.lang.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_impl.model.geometry.GM_Object_Impl |
calculateParam, clone, contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isValid, isWithinDistance, setEmpty, setValid, union |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.geometry.GM_Object |
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, intersection, isWithinDistance, union |
| Field Detail |
private static final long serialVersionUID
protected java.util.ArrayList aggregate
| Constructor Detail |
public GM_Aggregate_Impl(CS_CoordinateSystem crs)
crs - private GM_Aggregate_Impl()
| Method Detail |
public int getSize()
getSize in interface GM_Aggregate
public void merge(GM_Aggregate aggregate)
throws GM_Exception
merge in interface GM_AggregateGM_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)
add in interface GM_Aggregate
public void insertObjectAt(GM_Object gmo,
int index)
throws GM_Exception
insertObjectAt in interface GM_Aggregategmo - 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 or smaller then 0 or gmo equals null
an exception will be thrown.
setObjectAt in interface GM_Aggregategmo - GM_Object to set.index - position where to set the new GM_Object
GM_Exceptionpublic GM_Object removeObject(GM_Object gmo)
removeObject in interface GM_Aggregate
public GM_Object removeObjectAt(int index)
throws GM_Exception
removeObjectAt in interface GM_AggregateGM_Exceptionpublic void removeAll()
removeAll in interface GM_Aggregatepublic GM_Object getObjectAt(int index)
getObjectAt in interface GM_Aggregatepublic GM_Object[] getAll()
getAll in interface GM_Aggregatepublic boolean isMember(GM_Object gmo)
isMember in interface GM_Aggregatepublic java.util.Iterator getIterator()
getIterator in interface GM_Aggregatepublic boolean isEmpty()
isEmpty in interface GM_ObjectisEmpty in class GM_Object_Implpublic void setCoordinateSystem(CS_CoordinateSystem crs)
setCoordinateSystem in class GM_Object_Implcrs - new spatial reference systempublic void translate(double[] d)
dz-
value will be ignored.
translate in interface GM_Objecttranslate in class GM_Object_Implpublic boolean equals(java.lang.Object other)
GM_Object_Impl
equals in class GM_Object_Implother -
public boolean intersects(GM_Object gmo)
intersects in interface GM_Objectintersects in class GM_Object_Implgmo - the GM_Object to intersect with
public java.lang.String toString()
toString in class GM_Object_Impl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||