Class SARTrack

    • Constructor Detail

      • SARTrack

        public SARTrack​(java.lang.String name)
    • 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()
      • 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 interface java.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 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
      • 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 interface AVList
        Overrides:
        addPropertyChangeListener in class AVListImpl
        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 interface AVList
        Overrides:
        removePropertyChangeListener in class AVListImpl
        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 if odValue and newValue are equal and non-null.
        Specified by:
        firePropertyChange in interface AVList
        Overrides:
        firePropertyChange in class AVListImpl
        Parameters:
        propertyName - the key
        oldValue - 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 class java.lang.Object