|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.points.PointsList
public class PointsList
List-based Points implementation that allows to hold identifiable Point objects (with id
or even references to local or remote Point instances}.
This implementation is rather expensive, as every contained point is represented as an individual Point
object. Whenever possible, PackedPoints or PointsPoints should be used instead.
PackedPoints,
PointsPoints| Field Summary | |
|---|---|
protected List<Point> |
points
|
| Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
|---|
M, X, Y, Z |
| Constructor Summary | |
|---|---|
PointsList(List<Point> points)
Creates a new PointsList instance based on the given list. |
|
| 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 Points 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 Points. |
com.vividsolutions.jts.geom.Coordinate[] |
toCoordinateArray()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<Point> points
| Constructor Detail |
|---|
public PointsList(List<Point> points)
PointsList instance based on the given list.
points - | Method Detail |
|---|
public int getDimension()
Points
getDimension in interface com.vividsolutions.jts.geom.CoordinateSequencegetDimension in interface Pointspublic int size()
PointsPoints.
size in interface com.vividsolutions.jts.geom.CoordinateSequencesize in interface Pointspublic Iterator<Point> iterator()
iterator in interface Iterable<Point>public Point get(int i)
PointsPoint 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 Pointspublic double[] getAsArray()
PointsPoints as an array.
NOTE: This method should be avoided, as it may involve expensive operations.
getAsArray in interface Pointspublic Point getEndPoint()
Points
getEndPoint in interface Pointspublic Point getStartPoint()
Points
getStartPoint in interface Pointspublic com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
expandEnvelope in interface com.vividsolutions.jts.geom.CoordinateSequencepublic 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.CoordinateSequencepublic 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.CoordinateSequencepublic double getX(int index)
getX in interface com.vividsolutions.jts.geom.CoordinateSequencepublic 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.CoordinateSequencepublic com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray in interface com.vividsolutions.jts.geom.CoordinateSequencepublic Object clone()
clone in interface com.vividsolutions.jts.geom.CoordinateSequenceclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||