jAudioFeatureExtractor.actions
Class ViewBatchAction
java.lang.Object
javax.swing.AbstractAction
jAudioFeatureExtractor.actions.ViewBatchAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ViewBatchAction
- extends javax.swing.AbstractAction
Action that loads all settings in the chosen batch file into the current
window.
- 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)
Resets all gui paramters to the settings of the chosen batch file. |
void |
setFeatureFields(javax.swing.JCheckBox saveWindow,
javax.swing.JCheckBox saveOverall,
javax.swing.JTextArea windowSize,
javax.swing.JTextArea windowOverlap)
Sets references to gui elements so it can set them to the designated
values when executed. |
void |
setRecordingFields(javax.swing.JTextArea definition,
javax.swing.JTextArea value)
Sets references to gui elements so it can set them to the correct values when executed. |
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 |
ViewBatchAction
public ViewBatchAction(Controller c)
- Constructor that sets menu text and stores a reference to the controller.
- Parameters:
c
- near global controller.
setFeatureFields
public void setFeatureFields(javax.swing.JCheckBox saveWindow,
javax.swing.JCheckBox saveOverall,
javax.swing.JTextArea windowSize,
javax.swing.JTextArea windowOverlap)
- Sets references to gui elements so it can set them to the designated
values when executed.
- Parameters:
saveWindow
- checkbox indicating whether features should be saved per
windowsaveOverall
- checkbox indicating whether global features should be saved. .windowSize
- text box that holds the width of the analysis window in
samples.windowOverlap
- text box that holds the percent overlap between windows
setRecordingFields
public void setRecordingFields(javax.swing.JTextArea definition,
javax.swing.JTextArea value)
- Sets references to gui elements so it can set them to the correct values when executed.
- Parameters:
definition
- text box containing the location to save the feature declarations.value
- text box containing the location to save the extracted features.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Resets all gui paramters to the settings of the chosen batch file.