jAudioFeatureExtractor.actions
Class SaveAction
java.lang.Object
javax.swing.AbstractAction
jAudioFeatureExtractor.actions.SaveAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class SaveAction
- extends javax.swing.AbstractAction
Saves the settings of the system. Note that settings does not include the
files in the recording table. Bacth files should be used if it is desired to
save the file list as well.
- Author:
- Daniel McEnnis
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Save the current settings to a file on disk. |
void |
setObjectReferences(javax.swing.JTextArea win_length,
javax.swing.JTextArea win_overlap,
javax.swing.JCheckBox save_window,
javax.swing.JCheckBox save_overall)
Set the references needed to store the settings. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaveAction
public SaveAction(Controller c,
FeatureSelectorTableModel fstm)
- Constructor that sets the menu text and stores a reference to the
controller and feature table model
- Parameters:
c
- near global controllerfstm
- table model that contains the features.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Save the current settings to a file on disk. The file is stored in XML
format.
setObjectReferences
public void setObjectReferences(javax.swing.JTextArea win_length,
javax.swing.JTextArea win_overlap,
javax.swing.JCheckBox save_window,
javax.swing.JCheckBox save_overall)
- Set the references needed to store the settings.
- Parameters:
win_length
- text box that holds the width of the analysis window in
samples.win_overlap
- text box that holds the percent overlap between windowssave_window
- checkbox indicating whether features should be saved per
windowsave_overall
- checkbox indicating whether global features should be saved. .