jAudioFeatureExtractor.actions
Class LoadAction
java.lang.Object
javax.swing.AbstractAction
jAudioFeatureExtractor.actions.LoadAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class LoadAction
- extends javax.swing.AbstractAction
Reads a file containing settings and resets jAUdio to match those settings.
- 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)
Loads settings into the application. |
void |
setObjectReferences(javax.swing.JTextArea win_length,
javax.swing.JTextArea win_overlap,
javax.swing.JCheckBox save_window,
javax.swing.JCheckBox save_overall)
Provide access to additional 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 |
LoadAction
public LoadAction(Controller c,
FeatureSelectorTableModel fstm)
- Constructor that sets menu text and loads references needed to load
settings.
- Parameters:
c
- near global controllerfstm
- model containing features.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Loads settings into the application. Settings include which features are
selected, whether to extract globally or per window, the attributes for
each feature, and the size and overlap of the analysis windows.
setObjectReferences
public void setObjectReferences(javax.swing.JTextArea win_length,
javax.swing.JTextArea win_overlap,
javax.swing.JCheckBox save_window,
javax.swing.JCheckBox save_overall)
- Provide access to additional settings.
- Parameters:
win_length
- text area that has window lengthwin_overlap
- text area that shows the degree of overlapsave_window
- checkbox for whether to save global average featuressave_overall
- checkbox for saving features window by window