gov.noaa.pmel.sgt.dm
Class PointCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by gov.noaa.pmel.sgt.dm.Collection
                  extended by gov.noaa.pmel.sgt.dm.PointCollection
All Implemented Interfaces:
SGTData, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class PointCollection
extends Collection

PointCollection is an extension to Vector designed to hold SGTPoint objects.

Since:
2.0
Version:
$Revision$, $Date$
Author:
Donald Denbo
See Also:
SGTData, SGTPoint, SGTLine, SGTGrid, SGTVector, Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PointCollection()
          Default consturctor
PointCollection(java.lang.String title)
           
PointCollection(java.lang.String title, int initialCapacity)
           
PointCollection(java.lang.String title, int initialCapacity, int increment)
           
 
Method Summary
 SGTData copy()
          Create a copy.
 SGTMetaData getXMetaData()
          Returns the X SGTMetaData.
 SoTRange getXRange()
          Returns the range of the X coordinates.
 SGTMetaData getYMetaData()
          Returns the Y SGTMetaData.
 SoTRange getYRange()
          Returns the range of the Y coordinates.
 void setXMetaData(SGTMetaData xMetaData)
          Set the SGTMetaData associated with the x axis.
 void setYMetaData(SGTMetaData yMetaData)
          Set the SGTMetaData associated with the y axis.
 
Methods inherited from class gov.noaa.pmel.sgt.dm.Collection
addPropertyChangeListener, getId, getKeyTitle, getTitle, isXTime, isYTime, removePropertyChangeListener, setId, setKeyTitle, setTitle
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

PointCollection

public PointCollection()
Default consturctor


PointCollection

public PointCollection(java.lang.String title)

PointCollection

public PointCollection(java.lang.String title,
                       int initialCapacity)

PointCollection

public PointCollection(java.lang.String title,
                       int initialCapacity,
                       int increment)
Method Detail

copy

public SGTData copy()
Create a copy.

Specified by:
copy in interface SGTData
Overrides:
copy in class Collection
Returns:
shallow copy
See Also:
SGTData

getXRange

public SoTRange getXRange()
Description copied from interface: SGTData
Returns the range of the X coordinates. If all the data in the array is missing, this method will return Double.NaN as the start and end values for data of type double and return GeoDate(Long.MIN_VALUE) for data of type GeoDate.

Specified by:
getXRange in interface SGTData
Overrides:
getXRange in class Collection
See Also:
GeoDate.isMissing()

getYRange

public SoTRange getYRange()
Description copied from interface: SGTData
Returns the range of the Y coordinates.

Specified by:
getYRange in interface SGTData
Overrides:
getYRange in class Collection
See Also:
SGTData.getXRange()

getXMetaData

public SGTMetaData getXMetaData()
Description copied from interface: SGTData
Returns the X SGTMetaData.

Specified by:
getXMetaData in interface SGTData
Overrides:
getXMetaData in class Collection

setXMetaData

public void setXMetaData(SGTMetaData xMetaData)
Set the SGTMetaData associated with the x axis.


getYMetaData

public SGTMetaData getYMetaData()
Description copied from interface: SGTData
Returns the Y SGTMetaData.

Specified by:
getYMetaData in interface SGTData
Overrides:
getYMetaData in class Collection

setYMetaData

public void setYMetaData(SGTMetaData yMetaData)
Set the SGTMetaData associated with the y axis.