public class AudioMarker extends ButtonMarker
Marker.TemplateEntryProperty
Modifier and Type | Field and Description |
---|---|
private URL |
audioUrl |
private static AudioMarker |
recentlyPlayedMarker |
double |
syncOffset |
boolean |
timeFromAudio |
LABEL_PATTERN_AUTO, LABEL_PATTERN_DESC, LABEL_PATTERN_NAME, MARKER_FORMATTED_OFFSET, MARKER_OFFSET, markerProducers, offset, parentLayer, symbol, time
Constructor and Description |
---|
AudioMarker(LatLon ll,
TemplateEngineDataProvider dataProvider,
URL audioUrl,
MarkerLayer parentLayer,
double time,
double offset) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ev)
Called when the mouse is clicked in the marker's hotspot.
|
void |
adjustOffset(double adjustment) |
WayPoint |
convertToWayPoint()
Convert Marker to WayPoint so it can be exported to a GPX file.
|
protected Marker.TemplateEntryProperty |
getTextTemplate() |
void |
play()
Starts playing the audio associated with the marker: used in response to pressing
the marker as well as indirectly
|
void |
play(double after)
Starts playing the audio associated with the marker offset by the given amount
|
static AudioMarker |
recentlyPlayedMarker() |
double |
syncOffset() |
URL |
url() |
containsPoint, paint
createMarkers, evaluateCondition, getCoor, getEastNorth, getTemplateKeys, getTemplateValue, getText, isErroneous, paintIcon, setCoor, setEastNorth, setErroneous
private static volatile AudioMarker recentlyPlayedMarker
public double syncOffset
public boolean timeFromAudio
public AudioMarker(LatLon ll, TemplateEngineDataProvider dataProvider, URL audioUrl, MarkerLayer parentLayer, double time, double offset)
public void actionPerformed(ActionEvent ev)
Marker
actionPerformed
in class Marker
ev
- A dummy ActionEventpublic static AudioMarker recentlyPlayedMarker()
public void play(double after)
after
- : seconds after marker where playing should startpublic void play()
public void adjustOffset(double adjustment)
public double syncOffset()
protected Marker.TemplateEntryProperty getTextTemplate()
getTextTemplate
in class Marker
public WayPoint convertToWayPoint()
Marker
convertToWayPoint
in class Marker