org.kaboum.geom
Class KaboumGeometryCollection

java.lang.Object
  extended by org.kaboum.geom.KaboumGeometry
      extended by org.kaboum.geom.KaboumGeometryCollection
Direct Known Subclasses:
KaboumMultiLineString, KaboumMultiPoint, KaboumMultiPolygon

public class KaboumGeometryCollection
extends KaboumGeometry

Implementation of GeometryCollection.


Field Summary
protected  KaboumGeometry[] geometries
          Internal representation of this GeometryCollection.
 
Fields inherited from class org.kaboum.geom.KaboumGeometry
WKT_LINESTRING, WKT_POINT, WKT_POLYGON
 
Constructor Summary
KaboumGeometryCollection(KaboumGeometry[] geometries)
          Constructs a GeometryCollection.
 
Method Summary
 void addCoordinateInGeometryN(KaboumCoordinate internal, int i)
           
 boolean equalsExact(KaboumGeometry other)
           
 double getArea()
           
 KaboumCoordinate[] getCoordinates()
          Returns this Geometry s vertices.
 int getDimension()
           
 KaboumExtent getExtent()
           
 KaboumCoordinate[] getExteriorCoordinates()
          Returns this Geometry s exterior vertices.
 int getExteriorNumPoints()
           
 KaboumGeometry getGeometryN(int n)
          Return the number og geometries
 java.lang.String getGeometryType()
           
 int getNumGeometries()
          Return the number og geometries
 int getNumPoints()
          Returns the count of this Geometrys vertices.
 double getPerimeter()
           
 boolean isClosed()
           
 boolean isEmpty()
           
 void normalize()
           
 boolean removeGeometry(KaboumGeometry inputGeometry)
          Always returns false
 boolean removeGeometryN(int n)
           
 boolean setCoordinates(KaboumCoordinate[] internals)
          You CANNOT set coordinate of a Geometry Collection
 
Methods inherited from class org.kaboum.geom.KaboumGeometry
addCoordinate, clone, hasNonEmptyElements, hasNullElements, indexOf, isEquivalentClass, minCoordinate, reversePointOrder, scroll
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geometries

protected KaboumGeometry[] geometries
Internal representation of this GeometryCollection.

Constructor Detail

KaboumGeometryCollection

public KaboumGeometryCollection(KaboumGeometry[] geometries)
Constructs a GeometryCollection.

Parameters:
geometries - the Geometrys for this GeometryCollection , or null or an empty array to create the empty geometry. Elements may be empty Geometrys, but not null s.
Method Detail

getCoordinates

public KaboumCoordinate[] getCoordinates()
Description copied from class: KaboumGeometry
Returns this Geometry s vertices.

Specified by:
getCoordinates in class KaboumGeometry
Returns:
the vertices of this Geometry

getExteriorCoordinates

public KaboumCoordinate[] getExteriorCoordinates()
Description copied from class: KaboumGeometry
Returns this Geometry s exterior vertices.

Specified by:
getExteriorCoordinates in class KaboumGeometry
Returns:
the vertices of this Geometry

setCoordinates

public boolean setCoordinates(KaboumCoordinate[] internals)
You CANNOT set coordinate of a Geometry Collection

Specified by:
setCoordinates in class KaboumGeometry
Returns:
the vertices of this Geometry

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class KaboumGeometry

getDimension

public int getDimension()
Specified by:
getDimension in class KaboumGeometry

getNumGeometries

public int getNumGeometries()
Description copied from class: KaboumGeometry
Return the number og geometries

Overrides:
getNumGeometries in class KaboumGeometry

getGeometryN

public KaboumGeometry getGeometryN(int n)
Description copied from class: KaboumGeometry
Return the number og geometries

Overrides:
getGeometryN in class KaboumGeometry

removeGeometry

public boolean removeGeometry(KaboumGeometry inputGeometry)
Description copied from class: KaboumGeometry
Always returns false

Overrides:
removeGeometry in class KaboumGeometry

removeGeometryN

public boolean removeGeometryN(int n)

getNumPoints

public int getNumPoints()
Description copied from class: KaboumGeometry
Returns the count of this Geometrys vertices.

Specified by:
getNumPoints in class KaboumGeometry
Returns:
the number of vertices in this Geometry

getExteriorNumPoints

public int getExteriorNumPoints()
Specified by:
getExteriorNumPoints in class KaboumGeometry

getGeometryType

public java.lang.String getGeometryType()
Specified by:
getGeometryType in class KaboumGeometry

equalsExact

public boolean equalsExact(KaboumGeometry other)
Specified by:
equalsExact in class KaboumGeometry

isClosed

public boolean isClosed()
Specified by:
isClosed in class KaboumGeometry

normalize

public void normalize()
Specified by:
normalize in class KaboumGeometry

getExtent

public KaboumExtent getExtent()
Specified by:
getExtent in class KaboumGeometry

getArea

public double getArea()
Specified by:
getArea in class KaboumGeometry

getPerimeter

public double getPerimeter()
Specified by:
getPerimeter in class KaboumGeometry

addCoordinateInGeometryN

public void addCoordinateInGeometryN(KaboumCoordinate internal,
                                     int i)
Overrides:
addCoordinateInGeometryN in class KaboumGeometry


Copyright © 2005 Kaboum team. All Rights Reserved.