Class SARTrack
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwindx.applications.sar.SARTrack
-
- All Implemented Interfaces:
AVList
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.lang.Iterable<Position>
,java.util.EventListener
public class SARTrack extends WWObjectImpl implements java.lang.Iterable<Position>
-
-
Field Summary
Fields Modifier and Type Field Description static int
FORMAT_CSV
static int
FORMAT_GPX
static int
FORMAT_NMEA
-
Constructor Summary
Constructors Constructor Description SARTrack(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, SARPosition position)
void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes.void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Adds a property change listener for the specified key.void
appendPosition(SARPosition position)
void
clearDirtyBit()
void
firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Calls all property change listeners associated with the specified key.static SARTrack
fromFile(java.lang.String filePath)
SARPosition
get(int index)
java.awt.Color
getColor()
java.io.File
getFile()
int
getFormat()
long
getLastModifiedTime()
long
getLastSaveTime()
java.lang.String
getName()
double
getOffset()
java.util.ArrayList<SARPosition>
getPositions()
void
insertPosition(int index, SARPosition position)
boolean
isDirty()
java.util.Iterator<Position>
iterator()
void
markDirty()
void
removePosition(int index)
void
removePositions(int[] positionNumbers)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified all-property property change listener.void
set(int index, SARPosition position)
void
setColor(java.awt.Color color)
void
setFile(java.io.File file)
void
setFormat(int format)
void
setName(java.lang.String name)
void
setOffset(double offset)
void
setPosition(int index, SARPosition position)
int
size()
static void
toFile(SARTrack track, java.lang.String filePath, int format)
java.lang.String
toString()
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
clearList, copy, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, 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_GPX
public static final int FORMAT_GPX
- See Also:
- Constant Field Values
-
FORMAT_CSV
public static final int FORMAT_CSV
- See Also:
- Constant Field Values
-
FORMAT_NMEA
public static final int FORMAT_NMEA
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromFile
public static SARTrack fromFile(java.lang.String filePath) throws java.io.IOException
- Throws:
java.io.IOException
-
toFile
public static void toFile(SARTrack track, java.lang.String filePath, int format) throws java.io.IOException
- Throws:
java.io.IOException
-
getFile
public java.io.File getFile()
-
setFile
public void setFile(java.io.File file)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getFormat
public int getFormat()
-
setFormat
public void setFormat(int format)
-
getLastSaveTime
public long getLastSaveTime()
-
getLastModifiedTime
public long getLastModifiedTime()
-
isDirty
public boolean isDirty()
-
markDirty
public void markDirty()
-
clearDirtyBit
public void clearDirtyBit()
-
getColor
public java.awt.Color getColor()
-
setColor
public void setColor(java.awt.Color color)
-
size
public int size()
-
getPositions
public java.util.ArrayList<SARPosition> getPositions()
-
get
public SARPosition get(int index)
-
set
public void set(int index, SARPosition position)
-
add
public void add(int index, SARPosition position)
-
getOffset
public double getOffset()
-
setOffset
public void setOffset(double offset)
-
iterator
public java.util.Iterator<Position> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Position>
-
removePosition
public void removePosition(int index)
-
removePositions
public void removePositions(int[] positionNumbers)
-
appendPosition
public void appendPosition(SARPosition position)
-
insertPosition
public void insertPosition(int index, SARPosition position)
-
setPosition
public void setPosition(int index, SARPosition position)
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Description copied from interface:AVList
Adds a property change listener for the specified key.- Specified by:
addPropertyChangeListener
in interfaceAVList
- Overrides:
addPropertyChangeListener
in classAVListImpl
- Parameters:
propertyName
- the key to associate the listener with.listener
- the listener to associate with the key.- See Also:
PropertyChangeSupport
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.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 interfaceAVList
- Overrides:
addPropertyChangeListener
in classAVListImpl
- Parameters:
listener
- the listener to call.- See Also:
PropertyChangeSupport
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:AVList
Removes the specified all-property property change listener.- Specified by:
removePropertyChangeListener
in interfaceAVList
- Overrides:
removePropertyChangeListener
in classAVListImpl
- Parameters:
listener
- the listener to remove.- See Also:
PropertyChangeSupport
-
firePropertyChange
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Description copied from interface:AVList
Calls all property change listeners associated with the specified key. No listeners are called ifodValue
andnewValue
are equal and non-null.- Specified by:
firePropertyChange
in interfaceAVList
- Overrides:
firePropertyChange
in classAVListImpl
- 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-