Class AudioMarker

    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent ev)
        Description copied from class: Marker
        Called when the mouse is clicked in the marker's hotspot. Never called for markers which always return false from containsPoint.
        Overrides:
        actionPerformed in class Marker
        Parameters:
        ev - A dummy ActionEvent
      • recentlyPlayedMarker

        public static AudioMarker recentlyPlayedMarker()
        Returns the marker played the most recently, if any.
        Returns:
        the marker played the most recently, or null
      • url

        public java.net.URL url()
      • play

        public void play​(double after)
        Starts playing the audio associated with the marker offset by the given amount
        Parameters:
        after - : seconds after marker where playing should start
      • play

        public void play()
        Starts playing the audio associated with the marker: used in response to pressing the marker as well as indirectly
      • adjustOffset

        public void adjustOffset​(double adjustment)
      • convertToWayPoint

        public WayPoint convertToWayPoint()
        Description copied from class: Marker
        Convert Marker to WayPoint so it can be exported to a GPX file. Override in subclasses to add all necessary attributes.
        Overrides:
        convertToWayPoint in class Marker
        Returns:
        the corresponding WayPoint with all relevant attributes