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, enabled
ACCELERATOR_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 void |
warnCantImportIntoServerLayer(GpxLayer layer) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ImportAudioAction(GpxLayer layer)
ImportAudioAction
.layer
- The associated GPX layerprivate 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 layermarkers
- : keeps track of warning messages to avoid repeated warnings