org.kaboum.geom
Class KaboumPoint

java.lang.Object
  extended by org.kaboum.geom.KaboumGeometry
      extended by org.kaboum.geom.KaboumPoint

public class KaboumPoint
extends KaboumGeometry

Basic implementation of Point.


Field Summary
protected  KaboumCoordinate coordinate
          The Coordinate wrapped by this Point.
 
Fields inherited from class org.kaboum.geom.KaboumGeometry
WKT_LINESTRING, WKT_POINT, WKT_POLYGON
 
Constructor Summary
KaboumPoint(KaboumCoordinate coordinate)
          Constructs a Point with the given coordinate.
 
Method Summary
 void addCoordinate(KaboumCoordinate internal)
           
 java.lang.Object clone()
          Perform an exact copy of this object
protected  KaboumExtent computeExtentInternal()
           
 boolean equalsExact(KaboumGeometry other)
           
 double getArea()
           
 KaboumCoordinate getCoordinate()
           
 KaboumCoordinate[] getCoordinates()
          Returns this Geometry s vertices.
 int getDimension()
           
 KaboumExtent getExtent()
           
 KaboumCoordinate[] getExteriorCoordinates()
          Returns this Geometry s exterior vertices.
 int getExteriorNumPoints()
           
 java.lang.String getGeometryType()
           
 int getNumPoints()
          Returns the count of this Geometrys vertices.
 double getPerimeter()
           
 double getX()
           
 double getY()
           
 boolean isClosed()
           
 boolean isEmpty()
           
 void normalize()
           
 boolean setCoordinates(KaboumCoordinate[] internals)
          Fill a SIMPLE geometry with input coordinates list
 
Methods inherited from class org.kaboum.geom.KaboumGeometry
addCoordinateInGeometryN, getGeometryN, getNumGeometries, hasNonEmptyElements, hasNullElements, indexOf, isEquivalentClass, minCoordinate, removeGeometry, reversePointOrder, scroll
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinate

protected KaboumCoordinate coordinate
The Coordinate wrapped by this Point.

Constructor Detail

KaboumPoint

public KaboumPoint(KaboumCoordinate coordinate)
Constructs a Point with the given coordinate.

Parameters:
coordinate - the coordinate on which to base this Point
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

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

isEmpty

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

getDimension

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

getX

public double getX()

getY

public double getY()

getCoordinate

public KaboumCoordinate getCoordinate()

setCoordinates

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

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

getGeometryType

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

computeExtentInternal

protected KaboumExtent computeExtentInternal()

equalsExact

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

clone

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

Overrides:
clone 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

addCoordinate

public void addCoordinate(KaboumCoordinate internal)
Overrides:
addCoordinate in class KaboumGeometry


Copyright © 2005 Kaboum team. All Rights Reserved.