NASA World Wind

gov.nasa.worldwind.applications.sar
Class SARTrack

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.applications.sar.SARTrack
All Implemented Interfaces:
AVList, WWObject, PropertyChangeListener, Iterable<Position>, EventListener

public class SARTrack
extends WWObjectImpl
implements Iterable<Position>


Field Summary
static int FORMAT_CSV
           
static int FORMAT_GPX
           
static int FORMAT_NMEA
           
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SARTrack(String name)
           
 
Method Summary
 void add(int index, SARPosition position)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds the specified all-property property change listener that will be called for all list changes.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Adds a property change listener for the specified key.
 void appendPosition(SARPosition position)
           
 void clearDirtyBit()
           
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
          Calls all property change listeners associated with the specified key.
static SARTrack fromFile(String filePath)
           
 SARPosition get(int index)
           
 Color getColor()
           
 File getFile()
           
 int getFormat()
           
 long getLastModifiedTime()
           
 long getLastSaveTime()
           
 String getName()
           
 double getOffset()
           
 ArrayList<SARPosition> getPositions()
           
 void insertPosition(int index, SARPosition position)
           
 boolean isDirty()
           
 Iterator<Position> iterator()
           
 void markDirty()
           
 void removePosition(int index)
           
 void removePositions(int[] positionNumbers)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes the specified all-property property change listener.
 void set(int index, SARPosition position)
           
 void setColor(Color color)
           
 void setFile(File file)
           
 void setFormat(int format)
           
 void setName(String name)
           
 void setOffset(double offset)
           
 void setPosition(int index, SARPosition position)
           
 int size()
           
static void toFile(SARTrack track, String filePath, int format)
           
 String toString()
           
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
clearList, copy, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
clearList, copy, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues
 

Field Detail

FORMAT_CSV

public static final int FORMAT_CSV
See Also:
Constant Field Values

FORMAT_GPX

public static final int FORMAT_GPX
See Also:
Constant Field Values

FORMAT_NMEA

public static final int FORMAT_NMEA
See Also:
Constant Field Values
Constructor Detail

SARTrack

public SARTrack(String name)
Method Detail

add

public void add(int index,
                SARPosition position)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: AVList
Adds the specified all-property property change listener that will be called for all list changes.

Specified by:
addPropertyChangeListener in interface AVList
Overrides:
addPropertyChangeListener in class AVListImpl
Parameters:
listener - the listener to call.
See Also:
PropertyChangeSupport

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Description copied from interface: AVList
Adds a property change listener for the specified key.

Specified by:
addPropertyChangeListener in interface AVList
Overrides:
addPropertyChangeListener in class AVListImpl
Parameters:
propertyName - the key to associate the listener with.
listener - the listener to associate with the key.
See Also:
PropertyChangeSupport

appendPosition

public void appendPosition(SARPosition position)

clearDirtyBit

public void clearDirtyBit()

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)
Description copied from interface: AVList
Calls all property change listeners associated with the specified key. No listeners are called if odValue and newValue are equal and non-null.

Specified by:
firePropertyChange in interface AVList
Overrides:
firePropertyChange in class AVListImpl
Parameters:
propertyName - the key
oldValue - the value associated with the key before the even causing the firing.
newValue - the new value associated with the key.
See Also:
PropertyChangeSupport

fromFile

public static SARTrack fromFile(String filePath)
                         throws IOException
Throws:
IOException

get

public SARPosition get(int index)

getColor

public Color getColor()

getFile

public File getFile()

getFormat

public int getFormat()

getLastModifiedTime

public long getLastModifiedTime()

getLastSaveTime

public long getLastSaveTime()

getName

public String getName()

getOffset

public double getOffset()

getPositions

public ArrayList<SARPosition> getPositions()

insertPosition

public void insertPosition(int index,
                           SARPosition position)

isDirty

public boolean isDirty()

iterator

public Iterator<Position> iterator()
Specified by:
iterator in interface Iterable<Position>

markDirty

public void markDirty()

removePosition

public void removePosition(int index)

removePositions

public void removePositions(int[] positionNumbers)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: AVList
Removes the specified all-property property change listener.

Specified by:
removePropertyChangeListener in interface AVList
Overrides:
removePropertyChangeListener in class AVListImpl
Parameters:
listener - the listener to remove.
See Also:
PropertyChangeSupport

set

public void set(int index,
                SARPosition position)

setColor

public void setColor(Color color)

setFile

public void setFile(File file)

setFormat

public void setFormat(int format)

setName

public void setName(String name)

setOffset

public void setOffset(double offset)

setPosition

public void setPosition(int index,
                        SARPosition position)

size

public int size()

toFile

public static void toFile(SARTrack track,
                          String filePath,
                          int format)
                   throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind