|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.vividsolutions.jts.geom.CoordinateList
A list of Coordinates, which may
be set to prevent repeated coordinates from occuring in the list.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
CoordinateList()
Constructs a new list without any coordinates |
|
CoordinateList(Coordinate[] coord)
The basic constructor for a CoordinateArray allows repeated points (i.e produces a CoordinateList with exactly the same set of points) |
|
CoordinateList(Coordinate[] coord,
boolean allowRepeated)
Constructs a new list from an array of Coordinates, allowing caller to specify if repeated points are to be removed. |
|
| Method Summary | |
boolean |
add(Coordinate[] coord,
boolean allowRepeated)
Add an array of coordinates |
boolean |
add(Coordinate[] coord,
boolean allowRepeated,
boolean direction)
Add an array of coordinates |
void |
add(Coordinate coord,
boolean allowRepeated)
Add a coordinate |
boolean |
add(java.lang.Object obj,
boolean allowRepeated)
Add a coordinate |
boolean |
addAll(java.util.Collection coll,
boolean allowRepeated)
Add an array of coordinates |
java.lang.Object |
clone()
Returns a deep copy of this CoordinateList instance. |
void |
closeRing()
Ensure this coordList is a ring, by adding the start point if necessary |
Coordinate |
getCoordinate(int i)
|
Coordinate[] |
toCoordinateArray()
Returns the Coordinates in this collection. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public CoordinateList()
public CoordinateList(Coordinate[] coord)
coord - the initial coordinates
public CoordinateList(Coordinate[] coord,
boolean allowRepeated)
coord - the array of coordinates to load into the listallowRepeated - if false, repeated points are removed| Method Detail |
public Coordinate getCoordinate(int i)
public boolean add(Coordinate[] coord,
boolean allowRepeated,
boolean direction)
coord - The coordinatesallowRepeated - if set to false, repeated coordinates are collapseddirection - if false, the array is added in reverse order
public boolean add(Coordinate[] coord,
boolean allowRepeated)
coord - The coordinatesallowRepeated - if set to false, repeated coordinates are collapsed
public boolean add(java.lang.Object obj,
boolean allowRepeated)
obj - The coordinate to addallowRepeated - if set to false, repeated coordinates are collapsed
public void add(Coordinate coord,
boolean allowRepeated)
coord - The coordinatesallowRepeated - if set to false, repeated coordinates are collapsed
public boolean addAll(java.util.Collection coll,
boolean allowRepeated)
coll - The coordinatesallowRepeated - if set to false, repeated coordinates are collapsed
public void closeRing()
public Coordinate[] toCoordinateArray()
public java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||