jAudioFeatureExtractor.actions
クラス SamplingRateAction

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

public class SamplingRateAction
extends javax.swing.AbstractAction

Action handling changes in the sample rate.

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

フィールドの概要
 javax.swing.JRadioButtonMenuItem[] samplingRates
          references to the radio buttons representing the range of possible sample rates.
 
クラス 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
 
コンストラクタの概要
SamplingRateAction()
           
 
メソッドの概要
 void actionPerformed(java.awt.event.ActionEvent e)
          stores an index to the currently selected sampling rate.
 double getSamplingRate()
          Returns the sample rate as an double representing samples per second.
 int getSelected()
          Return the integer index into the array of radio buttons that corresponds to the selected sampling rate.
 void setSelected(int i)
          Allows the initial settings of the radiobuttons.
 void setTarget(javax.swing.JRadioButtonMenuItem[] s)
          Sets references to the RadioButtons for sampling rate.
 
クラス 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
 

フィールドの詳細

samplingRates

public javax.swing.JRadioButtonMenuItem[] samplingRates
references to the radio buttons representing the range of possible sample rates.

コンストラクタの詳細

SamplingRateAction

public SamplingRateAction()
メソッドの詳細

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
stores an index to the currently selected sampling rate.


setTarget

public void setTarget(javax.swing.JRadioButtonMenuItem[] s)
Sets references to the RadioButtons for sampling rate.

パラメータ:
s -

getSelected

public int getSelected()
Return the integer index into the array of radio buttons that corresponds to the selected sampling rate.

戻り値:
the index to the selected sampling rate

getSamplingRate

public double getSamplingRate()
Returns the sample rate as an double representing samples per second.

戻り値:
sampling rate as a double

setSelected

public void setSelected(int i)
Allows the initial settings of the radiobuttons.

パラメータ:
i - which button is to be selected.