deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.model.spatialschema
Interface MultiSurface

All Superinterfaces:
Aggregate, Geometry, MultiPrimitive, Serializable
All Known Implementing Classes:
MultiSurfaceImpl

public interface MultiSurface
extends MultiPrimitive

This Interface defines the Aggregation of Surfaces. The implementing class should capsulate a java.util.Vector or a comarative data structure.

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

Version:
$Revision: 9343 $ $Date: 2007-12-27 14:30:32 +0100 (Do, 27 Dez 2007) $

Author:
Andreas Poth

Method Summary
 void addSurface(Surface gms)
          adds an Surface to the aggregation
 Surface[] getAllSurfaces()
          returns all Surfaces as array
 double getArea()
          returns the area of a MultiSurface
 Surface getSurfaceAt(int index)
          returns the Surface at the submitted index.
 void insertSurfaceAt(Surface gms, int index)
          inserts a Surface 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 gms equals null an exception will be thrown.
 Surface removeSurface(Surface gms)
          removes the submitted Surface from the aggregation
 Surface removeSurfaceAt(int index)
          removes the Surface at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown.
 void setSurfaceAt(Surface gms, int index)
          sets the submitted Surface 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 gms equals null an exception will be thrown.
 
Methods inherited from interface org.deegree.model.spatialschema.MultiPrimitive
getAllPrimitives, getPrimitiveAt
 
Methods inherited from interface org.deegree.model.spatialschema.Aggregate
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeAll, removeObject, removeObjectAt, setObjectAt
 
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

addSurface

void addSurface(Surface gms)
adds an Surface to the aggregation


insertSurfaceAt

void insertSurfaceAt(Surface gms,
                     int index)
                     throws GeometryException
inserts a Surface 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 gms equals null an exception will be thrown.

Parameters:
gms - Surface to insert.
index - position where to insert the new Surface
Throws:
GeometryException

setSurfaceAt

void setSurfaceAt(Surface gms,
                  int index)
                  throws GeometryException
sets the submitted Surface 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 gms equals null an exception will be thrown.

Parameters:
gms - Surface to set.
index - position where to set the new Surface
Throws:
GeometryException

removeSurface

Surface removeSurface(Surface gms)
removes the submitted Surface from the aggregation

Returns:
the removed Surface

removeSurfaceAt

Surface removeSurfaceAt(int index)
                        throws GeometryException
removes the Surface 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 Surface
Throws:
GeometryException

getSurfaceAt

Surface getSurfaceAt(int index)
returns the Surface at the submitted index.


getAllSurfaces

Surface[] getAllSurfaces()
returns all Surfaces as array


getArea

double getArea()
returns the area of a MultiSurface

Returns:
the area of a MultiSurface

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net