public class SARTrack extends WWObjectImpl implements java.lang.Iterable<Position>
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_CSV |
static int |
FORMAT_GPX |
static int |
FORMAT_NMEA |
Constructor and Description |
---|
SARTrack(java.lang.String name) |
Modifier and Type | Method and 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() |
onMessage, propertyChange
clearList, copy, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearList, copy, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, setValue, setValues
public static final int FORMAT_CSV
public static final int FORMAT_GPX
public static final int FORMAT_NMEA
public void add(int index, SARPosition position)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
addPropertyChangeListener
in class AVListImpl
listener
- the listener to call.PropertyChangeSupport
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
addPropertyChangeListener
in class AVListImpl
propertyName
- the key to associate the listener with.listener
- the listener to associate with the key.PropertyChangeSupport
public void appendPosition(SARPosition position)
public void clearDirtyBit()
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
AVList
odValue
and newValue
are equal and non-null.firePropertyChange
in interface AVList
firePropertyChange
in class AVListImpl
propertyName
- the keyoldValue
- the value associated with the key before the even causing the firing.newValue
- the new value associated with the key.PropertyChangeSupport
public static SARTrack fromFile(java.lang.String filePath) throws java.io.IOException
java.io.IOException
public SARPosition get(int index)
public java.awt.Color getColor()
public java.io.File getFile()
public int getFormat()
public long getLastModifiedTime()
public long getLastSaveTime()
public java.lang.String getName()
public double getOffset()
public java.util.ArrayList<SARPosition> getPositions()
public void insertPosition(int index, SARPosition position)
public boolean isDirty()
public java.util.Iterator<Position> iterator()
iterator
in interface java.lang.Iterable<Position>
public void markDirty()
public void removePosition(int index)
public void removePositions(int[] positionNumbers)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
AVList
removePropertyChangeListener
in interface AVList
removePropertyChangeListener
in class AVListImpl
listener
- the listener to remove.PropertyChangeSupport
public void set(int index, SARPosition position)
public void setColor(java.awt.Color color)
public void setFile(java.io.File file)
public void setFormat(int format)
public void setName(java.lang.String name)
public void setOffset(double offset)
public void setPosition(int index, SARPosition position)
public int size()
public static void toFile(SARTrack track, java.lang.String filePath, int format) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object