|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kaboum.geom.KaboumGeometry
org.kaboum.geom.KaboumLineString
public class KaboumLineString
Basic implementation of LineString.
| Field Summary | |
|---|---|
protected KaboumCoordinate[] |
points
The points of this LineString. |
| Fields inherited from class org.kaboum.geom.KaboumGeometry |
|---|
WKT_LINESTRING, WKT_POINT, WKT_POLYGON |
| Constructor Summary | |
|---|---|
KaboumLineString(KaboumCoordinate[] points)
Constructs a LineString with the given points. |
|
| 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 |
getCoordinateN(int n)
|
KaboumCoordinate[] |
getCoordinates()
Returns this Geometry s vertices. |
int |
getDimension()
|
KaboumPoint |
getEndPoint()
|
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()
|
KaboumPoint |
getPointN(int n)
|
KaboumPoint |
getStartPoint()
|
boolean |
isClosed()
|
boolean |
isCoordinate(KaboumCoordinate pt)
Returns true if the given point is a vertex of this LineString |
boolean |
isEmpty()
|
protected boolean |
isEquivalentClass(KaboumGeometry other)
Return true if this geometry got the same class of other geometry |
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, minCoordinate, removeGeometry, reversePointOrder, scroll |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected KaboumCoordinate[] points
LineString.
| Constructor Detail |
|---|
public KaboumLineString(KaboumCoordinate[] points)
LineString with the given points.
points - the points of the linestring| Method Detail |
|---|
public KaboumCoordinate[] getCoordinates()
KaboumGeometryGeometry s vertices.
getCoordinates in class KaboumGeometryGeometrypublic KaboumCoordinate[] getExteriorCoordinates()
KaboumGeometryGeometry s exterior vertices.
getExteriorCoordinates in class KaboumGeometryGeometrypublic KaboumCoordinate getCoordinateN(int n)
public int getDimension()
getDimension in class KaboumGeometrypublic boolean isEmpty()
isEmpty in class KaboumGeometrypublic int getNumPoints()
KaboumGeometryGeometrys vertices.
getNumPoints in class KaboumGeometryGeometrypublic int getExteriorNumPoints()
getExteriorNumPoints in class KaboumGeometrypublic KaboumPoint getPointN(int n)
public KaboumPoint getStartPoint()
public KaboumPoint getEndPoint()
public boolean isClosed()
isClosed in class KaboumGeometrypublic java.lang.String getGeometryType()
getGeometryType in class KaboumGeometrypublic boolean isCoordinate(KaboumCoordinate pt)
LineString
pt - the Coordinate to check
true if pt is one of this LineString
verticesprotected KaboumExtent computeExtentInternal()
public boolean equalsExact(KaboumGeometry other)
equalsExact in class KaboumGeometrypublic java.lang.Object clone()
KaboumGeometry
clone in class KaboumGeometrypublic void normalize()
normalize in class KaboumGeometryprotected boolean isEquivalentClass(KaboumGeometry other)
KaboumGeometry
isEquivalentClass in class KaboumGeometrypublic KaboumExtent getExtent()
getExtent in class KaboumGeometrypublic double getArea()
getArea in class KaboumGeometrypublic double getPerimeter()
getPerimeter in class KaboumGeometrypublic void addCoordinate(KaboumCoordinate internal)
addCoordinate in class KaboumGeometrypublic boolean setCoordinates(KaboumCoordinate[] internals)
KaboumGeometry
setCoordinates in class KaboumGeometryGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||