public class ImportAudioAction extends AbstractAction
| Modifier and Type | Class and Description |
|---|---|
private static class |
ImportAudioAction.Markers |
| Modifier and Type | Field and Description |
|---|---|
private GpxLayer |
layer |
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
ImportAudioAction(GpxLayer layer)
Constructs a new
ImportAudioAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
private void |
importAudio(File wavFile,
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) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic ImportAudioAction(GpxLayer layer)
ImportAudioAction.layer - The associated GPX layerprivate static void warnCantImportIntoServerLayer(GpxLayer layer)
public void actionPerformed(ActionEvent e)
private void importAudio(File wavFile, MarkerLayer ml, double firstStartTime, ImportAudioAction.Markers markers)
wavFile - 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