public class ImportAudioAction extends javax.swing.AbstractAction
| Modifier and Type | Class and Description |
|---|---|
static class |
ImportAudioAction.AudioFileFilter
Audio file filter.
|
private static class |
ImportAudioAction.Markers |
| Constructor and Description |
|---|
ImportAudioAction(GpxLayer layer)
Constructs a new
ImportAudioAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private void |
importAudio(java.io.File audioFile,
MarkerLayer ml,
double firstStartTime,
ImportAudioAction.Markers markers)
Makes a new marker layer derived from this GpxLayer containing at least one audio marker
which the given audio file is associated with.
|
private static void |
warnCantImportIntoServerLayer(GpxLayer layer) |
public ImportAudioAction(GpxLayer layer)
ImportAudioAction.layer - The associated GPX layerprivate static void warnCantImportIntoServerLayer(GpxLayer layer)
public void actionPerformed(java.awt.event.ActionEvent e)
private void importAudio(java.io.File audioFile, MarkerLayer ml, double firstStartTime, ImportAudioAction.Markers markers)
audioFile - the file to be associated with the markers in the new marker layerml - marker layerfirstStartTime - first start time in milliseconds, used for (d)markers - keeps track of warning messages to avoid repeated warnings