java.lang.Object
javafx.scene.media.EqualizerBand
public final class EqualizerBand extends Object
The 
EqualizerBand class provides control for each band in the
 AudioEqualizer.- Since:
- JavaFX 2.0
- See Also:
- AudioEqualizer
- 
Property SummaryProperties Type Property Description DoublePropertybandwidthBandwidth of the band in Hertz.DoublePropertycenterFrequencyCenter frequency of the band in Hertz.DoublePropertygainThe gain to be applied to the frequencies of this band.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description EqualizerBand()EqualizerBanddefault constructor.EqualizerBand(double centerFrequency, double bandwidth, double gain)CustomEqualizerBandconstructor.
- 
Method SummaryModifier and Type Method Description DoublePropertybandwidthProperty()Bandwidth of the band in Hertz.DoublePropertycenterFrequencyProperty()Center frequency of the band in Hertz.DoublePropertygainProperty()The gain to be applied to the frequencies of this band.doublegetBandwidth()Retrieve the bandwidth of the band.doublegetCenterFrequency()Retrieve the center frequency of the band.doublegetGain()Retrieve the gain to be applied to the band.voidsetBandwidth(double value)Set the bandwidth of the band in Hertz.voidsetCenterFrequency(double value)Set the center frequency on the band in Hertz.voidsetGain(double value)Set the gain of the band in dB.
- 
Property Details- 
centerFrequencyCenter frequency of the band in Hertz. The default value is0.0Hz.- See Also:
- getCenterFrequency(),- setCenterFrequency(double)
 
- 
bandwidthBandwidth of the band in Hertz. The default value is0.0Hz.- See Also:
- getBandwidth(),- setBandwidth(double)
 
- 
gainThe gain to be applied to the frequencies of this band. The default value is0.0dB.- See Also:
- getGain(),- setGain(double)
 
 
- 
- 
Field Details- 
MIN_GAINpublic static final double MIN_GAINMinimum possible gain value. In the current implementation this value is-24.0dB.- See Also:
- Constant Field Values
 
- 
MAX_GAINpublic static final double MAX_GAINMaximum possible gain value. In the current implementation this value is12.0dB.- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
EqualizerBandpublic EqualizerBand()EqualizerBanddefault constructor. It creates an instance withcenterFrequency,bandwidthandgainset to 0.
- 
EqualizerBandpublic EqualizerBand(double centerFrequency, double bandwidth, double gain)CustomEqualizerBandconstructor. It creates an instance from thecenterFrequency,bandwidthandgainparameters. Thegainspecifies the amount of amplification (gain > 0.0dB) or attenuation (gain < 0.0dB) to be applied to the center frequency of the band. The bandwidth is the frequency spread between the upper and lower edges of the equalizer transfer function which have half the dB gain of the peak (center frequency).
 
- 
- 
Method Details- 
setCenterFrequencypublic final void setCenterFrequency(double value)Set the center frequency on the band in Hertz.- Parameters:
- value- the center frequency which must be a positive value in Hz.
 
- 
getCenterFrequencypublic final double getCenterFrequency()Retrieve the center frequency of the band.- Returns:
- the center frequency on the band in Hertz.
 
- 
centerFrequencyPropertyCenter frequency of the band in Hertz. The default value is0.0Hz.- See Also:
- getCenterFrequency(),- setCenterFrequency(double)
 
- 
setBandwidthpublic final void setBandwidth(double value)Set the bandwidth of the band in Hertz.- Parameters:
- value- the bandwidth which must be a positive value in Hz.
 
- 
getBandwidthpublic final double getBandwidth()Retrieve the bandwidth of the band.- Returns:
- the bandwidth of the band in Hertz.
 
- 
bandwidthPropertyBandwidth of the band in Hertz. The default value is0.0Hz.- See Also:
- getBandwidth(),- setBandwidth(double)
 
- 
setGainpublic final void setGain(double value)
- 
getGainpublic final double getGain()Retrieve the gain to be applied to the band.- Returns:
- the gain of the band in dB.
 
- 
gainPropertyThe gain to be applied to the frequencies of this band. The default value is0.0dB.- See Also:
- getGain(),- setGain(double)
 
 
-