All Implemented Interfaces:
ILatLon, IQuadBucketType, Destroyable, TemplateEngineDataProvider

public class AudioMarker extends ButtonMarker
Marker class with audio playback capability.
  • Field Details

  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(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

      Returns the marker played the most recently, if any.
      Returns:
      the marker played the most recently, or null
    • resetRecentlyPlayedMarker

      Forgets the marker played the most recently, if any.
    • url

      public 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)
    • syncOffset

      public double syncOffset()
    • getTextTemplateKey

      Overrides:
      getTextTemplateKey in class Marker
    • 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