jAudioFeatureExtractor.actions
クラス OutputTypeAction

java.lang.Object
  上位を拡張 javax.swing.AbstractAction
      上位を拡張 jAudioFeatureExtractor.actions.OutputTypeAction
すべての実装されたインタフェース:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class OutputTypeAction
extends javax.swing.AbstractAction

Action responsible for processing when a user changes from either ACE or ARFF output format from the menu bar.

作成者:
Daniel McEnnis
関連項目:
直列化された形式

フィールドの概要
 
クラス javax.swing.AbstractAction から継承されたフィールド
changeSupport, enabled
 
インタフェース javax.swing.Action から継承されたフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
コンストラクタの概要
OutputTypeAction()
           
 
メソッドの概要
 void actionPerformed(java.awt.event.ActionEvent e)
          When an output type is selected, change the output type to match and check against inconsistant states.
 java.lang.String getOutputType()
          Provide a human friendly version of the outputType variable
 int getSelected()
          Return the integer value corresponding to the current output type selected
 void setSelected(int i)
          Set the current selected state.
 void setTarget(javax.swing.JRadioButtonMenuItem ace, javax.swing.JRadioButtonMenuItem arff, javax.swing.JCheckBox perWindow, javax.swing.JCheckBox overall)
          Sets all the references needed to check for invalid state combinations
 
クラス javax.swing.AbstractAction から継承されたメソッド
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

OutputTypeAction

public OutputTypeAction()
メソッドの詳細

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
When an output type is selected, change the output type to match and check against inconsistant states.


setTarget

public void setTarget(javax.swing.JRadioButtonMenuItem ace,
                      javax.swing.JRadioButtonMenuItem arff,
                      javax.swing.JCheckBox perWindow,
                      javax.swing.JCheckBox overall)
Sets all the references needed to check for invalid state combinations

パラメータ:
ace - "ACE" radio button
arff - "ARFF" radio button
perWindow - should features be saved for each window
overall - should global features be saved

getOutputType

public java.lang.String getOutputType()
Provide a human friendly version of the outputType variable

戻り値:
either ACE or ARFF depending on the currently selected value.

getSelected

public int getSelected()
Return the integer value corresponding to the current output type selected

戻り値:
integer value corresponding to the currently selected output type

setSelected

public void setSelected(int i)
Set the current selected state. Invalid values are mapped to ARFF.

パラメータ:
i - integer representing the desired output type.