javax.sound.sampled
public abstract class FloatControl extends Control
Since: 1.3
Nested Class Summary | |
---|---|
static class | FloatControl.Type
An instance of this class describes a particular floating point control. |
Constructor Summary | |
---|---|
protected | FloatControl(FloatControl.Type type, float min, float max, float prec, int update, float init, String units)
Create a new FloatControl given its type and various parameters.
|
protected | FloatControl(FloatControl.Type type, float min, float max, float prec, int update, float init, String units, String minLabel, String midLabel, String maxLabel)
Create a new FloatControl given its type and various parameters.
|
Method Summary | |
---|---|
float | getMaximum()
Return the maximum value of this control. |
String | getMaxLabel()
Return the label for the minimum value of this control. |
String | getMidLabel()
Return the label for the midpoint of this control. |
float | getMinimum()
Return the minimum value of this control. |
String | getMinLabel()
Return the label for the minimum value of this control. |
float | getPrecision()
Return the precision of this control. |
String | getUnits()
Return the name of the units for this control. |
int | getUpdatePeriod()
Return the update period of this control. |
float | getValue()
Return the current value of this control. |
void | setValue(float value)
Set the new value of this control. |
void | shift(float from, float to, int ms)
This tells the control to start at the starting value
and to shift its value incrementally to the final value
over the given time interval, specified in microseconds.
|
String | toString()
Return a string describing this control. |
Parameters: type the type min the minimum valuee max the maximum value prec the precision update the update period init the initial value units the description of the units
Parameters: type the type min the minimum valuee max the maximum value prec the precision update the update period init the initial value units the description of the units minLabel the label for the minimum value midLabel the label for the midpoint maxLabel the label for the maximum value
Parameters: value the new value
Throws: IllegalArgumentException if the new value is greater than the maximum or less than the minimum.
Parameters: from the starting value to the final value ms the number of microseconds