gov.nasa.worldwind.applications.sar
Class SARTrack
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.applications.sar.SARTrack
- All Implemented Interfaces:
- AVList, WWObject, PropertyChangeListener, Iterable<Position>, EventListener
public class SARTrack
- extends WWObjectImpl
- implements Iterable<Position>
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 interface gov.nasa.worldwind.avlist.AVList |
clearList, copy, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues |
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
SARTrack
public SARTrack(String name)
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 keyoldValue
- 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