public class AudioMarker extends ButtonMarker
Marker.TemplateEntryProperty| Modifier and Type | Field and Description |
|---|---|
private java.net.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,
java.net.URL audioUrl,
MarkerLayer parentLayer,
double time,
double offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.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() |
java.net.URL |
url() |
containsPoint, paintcreateMarker, evaluateCondition, getCoor, getEastNorth, getTemplateKeys, getTemplateValue, getText, isErroneous, paintIcon, setCoor, setEastNorth, setErroneousprivate java.net.URL audioUrl
private static AudioMarker recentlyPlayedMarker
public double syncOffset
public boolean timeFromAudio
public AudioMarker(LatLon ll, TemplateEngineDataProvider dataProvider, java.net.URL audioUrl, MarkerLayer parentLayer, double time, double offset)
public void actionPerformed(java.awt.event.ActionEvent ev)
MarkeractionPerformed in class Markerev - A dummy ActionEventpublic static AudioMarker recentlyPlayedMarker()
public java.net.URL url()
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 Markerpublic WayPoint convertToWayPoint()
MarkerconvertToWayPoint in class Marker