com.vividsolutions.jump.geom
Class CoordinateList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bycom.vividsolutions.jump.geom.CoordinateList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class CoordinateList
extends java.util.ArrayList

A CoordinateList is a list of Coordinates. It prevents duplicate consecutive coordinates from appearing in the list.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CoordinateList()
           
 
Method Summary
 void add(com.vividsolutions.jts.geom.Coordinate coord)
           
 boolean add(java.lang.Object obj)
           
 boolean addAll(java.util.Collection coll)
           
 void closeRing()
          Ensure this coordList is a ring, by adding the start point if necessary
 com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)
           
 com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, clear, clone, 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

CoordinateList

public CoordinateList()
Method Detail

getCoordinate

public com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)

add

public boolean add(java.lang.Object obj)

add

public void add(com.vividsolutions.jts.geom.Coordinate coord)

addAll

public boolean addAll(java.util.Collection coll)

closeRing

public void closeRing()
Ensure this coordList is a ring, by adding the start point if necessary


toCoordinateArray

public com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()