jAudioFeatureExtractor.actions
Class LoadAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
 
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
 
Constructor Summary
LoadAction(Controller c, FeatureSelectorTableModel fstm)
          Constructor that sets menu text and loads references needed to load settings.
 
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
 

Constructor Detail

LoadAction

public LoadAction(Controller c,
                  FeatureSelectorTableModel fstm)
Constructor that sets menu text and loads references needed to load settings.

Parameters:
c - near global controller
fstm - model containing features.
Method Detail

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 length
win_overlap - text area that shows the degree of overlap
save_window - checkbox for whether to save global average features
save_overall - checkbox for saving features window by window