org.deegree.model.geometry
Interface GM_MultiPoint

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

public interface GM_MultiPoint
extends GM_MultiPrimitive

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

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

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

Author:
Andreas Poth

Method Summary
 void addPoint(GM_Point gmp)
          adds a GM_Point to the aggregation
 GM_Point[] getAllPoints()
          returns all GM_Points as array
 GM_Point getPointAt(int index)
          returns the GM_Point at the submitted index.
 void insertPointAt(GM_Point gmp, int index)
          inserts a GM_Point into 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 gmp equals null an exception will be thrown.
 GM_Point removePoint(GM_Point gmp)
          removes the submitted GM_Point from the aggregation
 GM_Point removePointAt(int index)
          removes the GM_Point at the submitted index from the aggregation.
 void setPointAt(GM_Point gmp, int index)
          sets the submitted GM_Point 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 gmp 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

addPoint

public void addPoint(GM_Point gmp)
adds a GM_Point to the aggregation


insertPointAt

public void insertPointAt(GM_Point gmp,
                          int index)
                   throws GM_Exception
inserts a GM_Point into 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 gmp equals null an exception will be thrown.

Parameters:
gmp - GM_Point to insert.
index - position where to insert the new GM_Point
Throws:
GM_Exception

setPointAt

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

Parameters:
gmp - GM_Point to set.
index - position where to set the new GM_Point
Throws:
GM_Exception

removePoint

public GM_Point removePoint(GM_Point gmp)
removes the submitted GM_Point from the aggregation

Returns:
the removed GM_Point

removePointAt

public GM_Point removePointAt(int index)
                       throws GM_Exception
removes the GM_Point 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_Point
Throws:
GM_Exception

getPointAt

public GM_Point getPointAt(int index)
returns the GM_Point at the submitted index.


getAllPoints

public GM_Point[] getAllPoints()
returns all GM_Points as array