|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.spatialschema.CurveSegmentImpl
public abstract class CurveSegmentImpl
default implementation of the CurveSegment interface from package deegree.model.spatialschema.
the class is abstract because it should be specialized by derived classes LineString
for example
Field Summary | |
---|---|
protected CoordinateSystem |
crs
|
protected Position[] |
points
|
Constructor Summary | |
---|---|
protected |
CurveSegmentImpl(Position[] gmps,
CoordinateSystem crs)
Creates a new CurveSegmentImpl object. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
equals(java.lang.Object other)
checks if this curve segment is completely equal to the submitted geometry |
CoordinateSystem |
getCoordinateSystem()
returns the coordinate system of the curve segment |
Point |
getEndPoint()
returns the last point of the curve. if the curve segment doesn't contain a point null will be returned |
int |
getNumberOfPoints()
returns the number of points building the curve or curve segment |
Position |
getPositionAt(int index)
returns the curve segment position at the submitted index |
Position[] |
getPositions()
returns all positions of the segement as array of Position. |
Point |
getStartPoint()
returns the first point of the curve. if the curve segment doesn't contain a point null will be returned |
void |
reverse()
reverses the direction of the curvesegment |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.spatialschema.CurveSegment |
---|
intersects |
Methods inherited from interface org.deegree.model.spatialschema.GenericCurve |
---|
getAsLineString, getLength |
Field Detail |
---|
protected CoordinateSystem crs
protected Position[] points
Constructor Detail |
---|
protected CurveSegmentImpl(Position[] gmps, CoordinateSystem crs) throws GeometryException
gmps
- crs
-
GeometryException
Method Detail |
---|
public Point getStartPoint()
null
will be returned
getStartPoint
in interface GenericCurve
public Point getEndPoint()
null
will be returned
getEndPoint
in interface GenericCurve
public int getNumberOfPoints()
getNumberOfPoints
in interface CurveSegment
public Position[] getPositions()
getPositions
in interface CurveSegment
public Position getPositionAt(int index)
getPositionAt
in interface CurveSegment
index
- to get the curve
public void reverse()
reverse
in interface CurveSegment
public CoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface CurveSegment
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- object to compare topublic boolean contains(Geometry gmo)
contains
in interface CurveSegment
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org