API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.sampled. FloatControl View Source
Author(s)
David Rivas
Kara Kytle
Since
1.3
Version
1.17, 05/11/17
Serial
Hierarchy
 Object
      Control
          FloatControl
Implements
Subclasses
Description
publicabstract abstract class FloatControl
  A FloatControl object provides control over a range of floating-point values.
Constructors
protected FloatControl (Type type, float minimum, float maximum, float precision, int updatePeriod, float initialValue, String units)
  Constructs a new float control object with the given parameters.
protected FloatControl (Type type, float minimum, float maximum, float precision, int updatePeriod, float initialValue, String units, String minLabel, String midLabel, String maxLabel)
  Constructs a new float control object with the given parameters
Methods
Hide/Show inherited methods
public float getMaximum ()
  Obtains the maximum value permitted.
public String getMaxLabel ()
  Obtains the label for the maximum value, such as "Right" or "Full."
public String getMidLabel ()
  Obtains the label for the mid-point value, such as "Center" or "Default."
public float getMinimum ()
  Obtains the minimum value permitted.
public String getMinLabel ()
  Obtains the label for the minimum value, such as "Left" or "Off."
public float getPrecision ()
  Obtains the resolution or granularity of the control, in the units that the control measures.
public Type getType () [Inherited From Control]
  Obtains the control's type.
public String getUnits ()
  Obtains the label for the units in which the control's values are expressed, such as "dB" or "frames per second."
public int getUpdatePeriod ()
  Obtains the smallest time interval, in microseconds, over which the control's value can change during a shift.
public float getValue ()
  Obtains this control's current value.
public void setValue (float newValue)
  Sets the current value for the control.
public void shift (float from, float to, int microseconds)
  Changes the control value from the initial value to the final value linearly over the specified time period, specified in microseconds.
public String toString () [Overrides Control]
  Provides a string representation of the control
Fields
Hide/Show inherited fields
Nested Classes
  FloatControl.Type
An instance of the FloatControl.Type inner class identifies one kind of float control.
  Control.Type
An instance of the Type class represents the type of the control.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar