org.deegree.model.geometry
Interface GM_MultiCurve

All Superinterfaces:
GM_Aggregate, GM_MultiPrimitive, GM_Object
All Known Implementing Classes:
GM_MultiCurve_Impl

public interface GM_MultiCurve
extends GM_MultiPrimitive

The interface defines the access to a aggregations of GM_Curve objects.

-----------------------------------------------------

Version:
$Revision: 1.1.1.1 $ $Date: 2002/09/25 16:01:49 $

Author:
Andreas Poth

Method Summary
 void addCurve(GM_Curve gmc)
          adds a GM_Curve to the aggregation
 GM_Curve[] getAllCurves()
          returns all GM_Curves as array
 GM_Curve getCurveAt(int index)
          returns the GM_Curve at the submitted index. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown.
 void insertCurveAt(GM_Curve gmc, int index)
          inserts a GM_Curve 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 gmc equals null an exception will be thrown.
 GM_Curve removeCurve(GM_Curve gmc)
          removes the submitted GM_Curve from the aggregation
 GM_Curve removeCurveAt(int index)
          removes the GM_Curve at the submitted index from the aggregation.
 void setCurveAt(GM_Curve gmc, int index)
          sets the submitted GM_Curve 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 gmc equals null an exception will be thrown.
 
Methods inherited from interface org.deegree.model.geometry.GM_MultiPrimitive
getAllPrimitives, getPrimitiveAt
 
Methods inherited from interface org.deegree.model.geometry.GM_Aggregate
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeAll, removeObject, removeObjectAt, setObjectAt
 
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

addCurve

public void addCurve(GM_Curve gmc)
adds a GM_Curve to the aggregation


insertCurveAt

public void insertCurveAt(GM_Curve gmc,
                          int index)
                   throws GM_Exception
inserts a GM_Curve 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 gmc equals null an exception will be thrown.

Parameters:
gmc - GM_Curve to insert.
index - position where to insert the new GM_Curve
Throws:
GM_Exception

setCurveAt

public void setCurveAt(GM_Curve gmc,
                       int index)
                throws GM_Exception
sets the submitted GM_Curve 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 gmc equals null an exception will be thrown.

Parameters:
gmc - GM_Curve to set.
index - position where to set the new GM_Curve
Throws:
GM_Exception

removeCurve

public GM_Curve removeCurve(GM_Curve gmc)
removes the submitted GM_Curve from the aggregation

Returns:
the removed GM_Curve

removeCurveAt

public GM_Curve removeCurveAt(int index)
                       throws GM_Exception
removes the GM_Curve at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown.

Returns:
the removed GM_Curve
Throws:
GM_Exception

getCurveAt

public GM_Curve getCurveAt(int index)
returns the GM_Curve at the submitted index. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown.


getAllCurves

public GM_Curve[] getAllCurves()
returns all GM_Curves as array