gov.nasa.worldwind.applications.sar
Class SARTrack
java.lang.Object
gov.nasa.worldwind.applications.sar.SARTrack
- All Implemented Interfaces:
- Iterable<Position>
public class SARTrack
- extends Object
- implements Iterable<Position>
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)
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
appendPosition
public void appendPosition(SARPosition position)
clearDirtyBit
public void clearDirtyBit()
firePropertyChange
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
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()
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)
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