org.kaboum.geom
Class KaboumLinearRing

java.lang.Object
  extended by org.kaboum.geom.KaboumGeometry
      extended by org.kaboum.geom.KaboumLineString
          extended by org.kaboum.geom.KaboumLinearRing
Direct Known Subclasses:
KaboumLabeledLinearRing

public class KaboumLinearRing
extends KaboumLineString

Basic implementation of LinearRing.


Field Summary
 
Fields inherited from class org.kaboum.geom.KaboumLineString
points
 
Fields inherited from class org.kaboum.geom.KaboumGeometry
WKT_LINESTRING, WKT_POINT, WKT_POLYGON
 
Constructor Summary
KaboumLinearRing(KaboumCoordinate[] points)
          Constructs a LinearRing with the given points.
 
Method Summary
 java.lang.Object clone()
          Perform an exact copy of this object
 double getArea()
          Compute the area of this Linear Ring
 java.lang.String getGeometryType()
           
 boolean isClosed()
           
 boolean setCoordinates(KaboumCoordinate[] internals)
          Fill a SIMPLE geometry with input coordinates list
 
Methods inherited from class org.kaboum.geom.KaboumLineString
addCoordinate, computeExtentInternal, equalsExact, getCoordinateN, getCoordinates, getDimension, getEndPoint, getExtent, getExteriorCoordinates, getExteriorNumPoints, getNumPoints, getPerimeter, getPointN, getStartPoint, isCoordinate, isEmpty, isEquivalentClass, normalize
 
Methods inherited from class org.kaboum.geom.KaboumGeometry
addCoordinateInGeometryN, getGeometryN, getNumGeometries, hasNonEmptyElements, hasNullElements, indexOf, minCoordinate, removeGeometry, reversePointOrder, scroll
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KaboumLinearRing

public KaboumLinearRing(KaboumCoordinate[] points)
Constructs a LinearRing with the given points. A LinearRing cannot be used as a geometrical object, so it does not get unique id.

Parameters:
points - points forming a closed and simple linestring
Method Detail

getGeometryType

public java.lang.String getGeometryType()
Overrides:
getGeometryType in class KaboumLineString

isClosed

public boolean isClosed()
Overrides:
isClosed in class KaboumLineString

clone

public java.lang.Object clone()
Description copied from class: KaboumGeometry
Perform an exact copy of this object

Overrides:
clone in class KaboumLineString

getArea

public double getArea()
Compute the area of this Linear Ring

Overrides:
getArea in class KaboumLineString

setCoordinates

public boolean setCoordinates(KaboumCoordinate[] internals)
Description copied from class: KaboumGeometry
Fill a SIMPLE geometry with input coordinates list

Overrides:
setCoordinates in class KaboumLineString
Returns:
the vertices of this Geometry


Copyright © 2005 Kaboum team. All Rights Reserved.