jAudioFeatureExtractor.actions
Class AddBatchAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jAudioFeatureExtractor.actions.AddBatchAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class AddBatchAction
extends javax.swing.AbstractAction

Action that adds a batch to the internal system. This class is tightly coupled to the AddBatchGUI. Requires context from various GUI elements to extract the state information needed to create a batch.

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
AddBatchAction(Controller c)
          Constructor for creating this action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method creates a new batch, then activates the AddBatchGUI to finish the task.
 void setFilePath(javax.swing.JTextArea FV, javax.swing.JTextArea FK)
          Aquires references to GUI componenents needed to save settings for a batch.
 void setSettings(javax.swing.JCheckBox saveWindow, javax.swing.JCheckBox overall, javax.swing.JTextArea windowLength, javax.swing.JTextArea windowOverlap)
          Aquires references to GUI componenents needed to save settings for a batch.
 
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

AddBatchAction

public AddBatchAction(Controller c)
Constructor for creating this action.

Parameters:
c - Reference to the global controller.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This method creates a new batch, then activates the AddBatchGUI to finish the task.


setSettings

public void setSettings(javax.swing.JCheckBox saveWindow,
                        javax.swing.JCheckBox overall,
                        javax.swing.JTextArea windowLength,
                        javax.swing.JTextArea windowOverlap)
Aquires references to GUI componenents needed to save settings for a batch.

Parameters:
saveWindow - Should features be saved from each window of data.
overall - Should features be saved from over the entire file.
windowLength - Size of the analysis windo in samples
windowOverlap - Percent of the window that should be duplicated.

setFilePath

public void setFilePath(javax.swing.JTextArea FV,
                        javax.swing.JTextArea FK)
Aquires references to GUI componenents needed to save settings for a batch.

Parameters:
FV - TextArea containing the location to save feature values.
FK - TextArea containing the location to save feature definitions.