|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Geometry s 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 linestringMethod Detail |
---|
public KaboumCoordinate[] getCoordinates()
KaboumGeometry
Geometry
s vertices.
getCoordinates
in class KaboumGeometry
Geometry
public KaboumCoordinate[] getExteriorCoordinates()
KaboumGeometry
Geometry
s exterior vertices.
getExteriorCoordinates
in class KaboumGeometry
Geometry
public KaboumCoordinate getCoordinateN(int n)
public int getDimension()
getDimension
in class KaboumGeometry
public boolean isEmpty()
isEmpty
in class KaboumGeometry
public int getNumPoints()
KaboumGeometry
Geometry
s vertices.
getNumPoints
in class KaboumGeometry
Geometry
public int getExteriorNumPoints()
getExteriorNumPoints
in class KaboumGeometry
public KaboumPoint getPointN(int n)
public KaboumPoint getStartPoint()
public KaboumPoint getEndPoint()
public boolean isClosed()
isClosed
in class KaboumGeometry
public java.lang.String getGeometryType()
getGeometryType
in class KaboumGeometry
public 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 KaboumGeometry
public java.lang.Object clone()
KaboumGeometry
clone
in class KaboumGeometry
public void normalize()
normalize
in class KaboumGeometry
protected boolean isEquivalentClass(KaboumGeometry other)
KaboumGeometry
isEquivalentClass
in class KaboumGeometry
public KaboumExtent getExtent()
getExtent
in class KaboumGeometry
public double getArea()
getArea
in class KaboumGeometry
public double getPerimeter()
getPerimeter
in class KaboumGeometry
public void addCoordinate(KaboumCoordinate internal)
addCoordinate
in class KaboumGeometry
public boolean setCoordinates(KaboumCoordinate[] internals)
KaboumGeometry
setCoordinates
in class KaboumGeometry
Geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |