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 intFORMAT_CSVstatic intFORMAT_GPXstatic intFORMAT_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 voidadd(int index, SARPosition position)voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)Adds the specified all-property property change listener that will be called for all list changes.voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Adds a property change listener for the specified key.voidappendPosition(SARPosition position)voidclearDirtyBit()voidfirePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)Calls all property change listeners associated with the specified key.static SARTrackfromFile(java.lang.String filePath)SARPositionget(int index)java.awt.ColorgetColor()java.io.FilegetFile()intgetFormat()longgetLastModifiedTime()longgetLastSaveTime()java.lang.StringgetName()doublegetOffset()java.util.ArrayList<SARPosition>getPositions()voidinsertPosition(int index, SARPosition position)booleanisDirty()java.util.Iterator<Position>iterator()voidmarkDirty()voidremovePosition(int index)voidremovePositions(int[] positionNumbers)voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)Removes the specified all-property property change listener.voidset(int index, SARPosition position)voidsetColor(java.awt.Color color)voidsetFile(java.io.File file)voidsetFormat(int format)voidsetName(java.lang.String name)voidsetOffset(double offset)voidsetPosition(int index, SARPosition position)intsize()static voidtoFile(SARTrack track, java.lang.String filePath, int format)java.lang.StringtoString()-
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:
iteratorin 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:AVListAdds a property change listener for the specified key.- Specified by:
addPropertyChangeListenerin interfaceAVList- Overrides:
addPropertyChangeListenerin 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:AVListAdds the specified all-property property change listener that will be called for all list changes.- Specified by:
addPropertyChangeListenerin interfaceAVList- Overrides:
addPropertyChangeListenerin classAVListImpl- Parameters:
listener- the listener to call.- See Also:
PropertyChangeSupport
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:AVListRemoves the specified all-property property change listener.- Specified by:
removePropertyChangeListenerin interfaceAVList- Overrides:
removePropertyChangeListenerin 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:AVListCalls all property change listeners associated with the specified key. No listeners are called ifodValueandnewValueare equal and non-null.- Specified by:
firePropertyChangein interfaceAVList- Overrides:
firePropertyChangein 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:
toStringin classjava.lang.Object
-
-