|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.standard.points.PointsPoints
public class PointsPoints
Points
implementation that aggregates the members from a sequence of Points
objects.
Field Summary |
---|
Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
---|
M, X, Y, Z |
Constructor Summary | |
---|---|
PointsPoints(List<Points> pointsList)
Creates a new PointsPoints instance from the given list of Points . |
Method Summary | |
---|---|
Object |
clone()
|
com.vividsolutions.jts.geom.Envelope |
expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
|
Point |
get(int i)
Returns the Point at the specified position. |
double[] |
getAsArray()
Returns all coordinates of the contained Point s as an array. |
com.vividsolutions.jts.geom.Coordinate |
getCoordinate(int index)
|
void |
getCoordinate(int index,
com.vividsolutions.jts.geom.Coordinate coord)
|
com.vividsolutions.jts.geom.Coordinate |
getCoordinateCopy(int index)
|
int |
getDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the points are embedded in. |
Point |
getEndPoint()
Returns the last point of the sequence. |
double |
getOrdinate(int index,
int ordinateIndex)
|
Point |
getStartPoint()
Returns the first point of the sequence. |
double |
getX(int index)
|
double |
getY(int index)
|
Iterator<Point> |
iterator()
|
void |
setOrdinate(int index,
int ordinateIndex,
double value)
|
int |
size()
Returns the number of represented Point s. |
com.vividsolutions.jts.geom.Coordinate[] |
toCoordinateArray()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointsPoints(List<Points> pointsList)
PointsPoints
instance from the given list of Points
.
pointsList
- Method Detail |
---|
public Point get(int i)
Points
Point
at the specified position.
NOTE: It is generally more expensive to use this method than to access a Point
by iterating over this
object, because a new Point
object may have to be created (depending on the implementation).
get
in interface Points
public double[] getAsArray()
Points
Point
s as an array.
NOTE: This method should be avoided, as it may involve expensive operations.
getAsArray
in interface Points
public int getDimension()
Points
getDimension
in interface com.vividsolutions.jts.geom.CoordinateSequence
getDimension
in interface Points
public int size()
Points
Point
s.
size
in interface com.vividsolutions.jts.geom.CoordinateSequence
size
in interface Points
public Iterator<Point> iterator()
iterator
in interface Iterable<Point>
public Point getEndPoint()
Points
getEndPoint
in interface Points
public Point getStartPoint()
Points
getStartPoint
in interface Points
public com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
expandEnvelope
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinate(int index)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public void getCoordinate(int index, com.vividsolutions.jts.geom.Coordinate coord)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinateCopy(int index)
getCoordinateCopy
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getOrdinate(int index, int ordinateIndex)
getOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getX(int index)
getX
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getY(int index)
getY
in interface com.vividsolutions.jts.geom.CoordinateSequence
public void setOrdinate(int index, int ordinateIndex, double value)
setOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray
in interface com.vividsolutions.jts.geom.CoordinateSequence
public Object clone()
clone
in interface com.vividsolutions.jts.geom.CoordinateSequence
clone
in class Object
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |