|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.CurveSegmentImpl
abstract class CurveSegmentImpl
default implementation of the CurveSegment interface from package jago.model. 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 | |
|---|---|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
equals(Object other)
checks if this curve segment is completly 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 |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, 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 GenericCurvepublic Point getEndPoint()
null will be returned
getEndPoint in interface GenericCurvepublic int getNumberOfPoints()
getNumberOfPoints in interface CurveSegmentpublic Position[] getPositions()
getPositions in interface CurveSegmentpublic Position getPositionAt(int index)
getPositionAt in interface CurveSegmentpublic void reverse()
reverse in interface CurveSegmentpublic CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface CurveSegmentpublic boolean equals(Object other)
equals in class Objectother - object to compare topublic boolean contains(Geometry gmo)
contains in interface CurveSegmentpublic String toString()
toString in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net