deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.geometry.standard.composite
Class DefaultCompositeGeometry

java.lang.Object
  extended by org.deegree.geometry.standard.AbstractDefaultGeometry
      extended by org.deegree.geometry.standard.composite.DefaultCompositeGeometry
All Implemented Interfaces:
Iterable<GeometricPrimitive>, Collection<GeometricPrimitive>, List<GeometricPrimitive>, CompositeGeometry<GeometricPrimitive>, Geometry, GMLObject

public class DefaultCompositeGeometry
extends AbstractDefaultGeometry
implements CompositeGeometry<GeometricPrimitive>

Default implementation of CompositeGeometry.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Field Summary
 
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
crs, id, jtsFactory, jtsGeometry, pm
 
Constructor Summary
DefaultCompositeGeometry(String id, CRS crs, PrecisionModel pm, List<GeometricPrimitive> memberPrimitives)
          Creates a new DefaultCompositeGeometry from the given parameters.
 
Method Summary
 boolean add(GeometricPrimitive e)
           
 void add(int index, GeometricPrimitive element)
           
 boolean addAll(Collection<? extends GeometricPrimitive> c)
           
 boolean addAll(int index, Collection<? extends GeometricPrimitive> c)
           
protected  com.vividsolutions.jts.geom.GeometryCollection buildJTSGeometry()
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 GeometricPrimitive get(int index)
           
 int getCoordinateDimension()
          Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in.
 Geometry.GeometryType getGeometryType()
          Returns Geometry.GeometryType#COMPOSITE_GEOMETRY.
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<GeometricPrimitive> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<GeometricPrimitive> listIterator()
           
 ListIterator<GeometricPrimitive> listIterator(int index)
           
 GeometricPrimitive remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 GeometricPrimitive set(int index, GeometricPrimitive element)
           
 int size()
           
 List<GeometricPrimitive> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.gml.GMLObject
getGMLProperties
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

DefaultCompositeGeometry

public DefaultCompositeGeometry(String id,
                                CRS crs,
                                PrecisionModel pm,
                                List<GeometricPrimitive> memberPrimitives)
Creates a new DefaultCompositeGeometry from the given parameters.

Parameters:
id - identifier, may be null
crs - coordinate reference system, may be null
pm - precision model, may be null
memberPrimitives -
Method Detail

getCoordinateDimension

public int getCoordinateDimension()
Description copied from interface: Geometry
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in.

Specified by:
getCoordinateDimension in interface Geometry
Returns:
the coordinate dimension

add

public boolean add(GeometricPrimitive e)
Specified by:
add in interface Collection<GeometricPrimitive>
Specified by:
add in interface List<GeometricPrimitive>

add

public void add(int index,
                GeometricPrimitive element)
Specified by:
add in interface List<GeometricPrimitive>

addAll

public boolean addAll(Collection<? extends GeometricPrimitive> c)
Specified by:
addAll in interface Collection<GeometricPrimitive>
Specified by:
addAll in interface List<GeometricPrimitive>

addAll

public boolean addAll(int index,
                      Collection<? extends GeometricPrimitive> c)
Specified by:
addAll in interface List<GeometricPrimitive>

clear

public void clear()
Specified by:
clear in interface Collection<GeometricPrimitive>
Specified by:
clear in interface List<GeometricPrimitive>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<GeometricPrimitive>
Specified by:
contains in interface List<GeometricPrimitive>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<GeometricPrimitive>
Specified by:
containsAll in interface List<GeometricPrimitive>

get

public GeometricPrimitive get(int index)
Specified by:
get in interface List<GeometricPrimitive>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<GeometricPrimitive>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<GeometricPrimitive>
Specified by:
isEmpty in interface List<GeometricPrimitive>

iterator

public Iterator<GeometricPrimitive> iterator()
Specified by:
iterator in interface Iterable<GeometricPrimitive>
Specified by:
iterator in interface Collection<GeometricPrimitive>
Specified by:
iterator in interface List<GeometricPrimitive>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<GeometricPrimitive>

listIterator

public ListIterator<GeometricPrimitive> listIterator()
Specified by:
listIterator in interface List<GeometricPrimitive>

listIterator

public ListIterator<GeometricPrimitive> listIterator(int index)
Specified by:
listIterator in interface List<GeometricPrimitive>

remove

public GeometricPrimitive remove(int index)
Specified by:
remove in interface List<GeometricPrimitive>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<GeometricPrimitive>
Specified by:
remove in interface List<GeometricPrimitive>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<GeometricPrimitive>
Specified by:
removeAll in interface List<GeometricPrimitive>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<GeometricPrimitive>
Specified by:
retainAll in interface List<GeometricPrimitive>

set

public GeometricPrimitive set(int index,
                              GeometricPrimitive element)
Specified by:
set in interface List<GeometricPrimitive>

size

public int size()
Specified by:
size in interface Collection<GeometricPrimitive>
Specified by:
size in interface List<GeometricPrimitive>

subList

public List<GeometricPrimitive> subList(int fromIndex,
                                        int toIndex)
Specified by:
subList in interface List<GeometricPrimitive>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<GeometricPrimitive>
Specified by:
toArray in interface List<GeometricPrimitive>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<GeometricPrimitive>
Specified by:
toArray in interface List<GeometricPrimitive>

getGeometryType

public Geometry.GeometryType getGeometryType()
Description copied from interface: CompositeGeometry
Returns Geometry.GeometryType#COMPOSITE_GEOMETRY.

Specified by:
getGeometryType in interface CompositeGeometry<GeometricPrimitive>
Specified by:
getGeometryType in interface Geometry
Returns:
Geometry.GeometryType#COMPOSITE_GEOMETRY

buildJTSGeometry

protected com.vividsolutions.jts.geom.GeometryCollection buildJTSGeometry()
Overrides:
buildJTSGeometry in class AbstractDefaultGeometry

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>