< prev index next >

src/java.desktop/share/classes/javax/sound/sampled/FloatControl.java

Print this page

        

*** 52,78 **** public abstract class FloatControl extends Control { /** * The minimum supported value. */ ! private float minimum; /** * The maximum supported value. */ ! private float maximum; /** * The control's precision. */ ! private float precision; /** * The smallest time increment in which a value change can be effected * during a value shift, in microseconds. */ ! private int updatePeriod; /** * A label for the units in which the control values are expressed, such as * "dB" for decibels. */ --- 52,78 ---- public abstract class FloatControl extends Control { /** * The minimum supported value. */ ! private final float minimum; /** * The maximum supported value. */ ! private final float maximum; /** * The control's precision. */ ! private final float precision; /** * The smallest time increment in which a value change can be effected * during a value shift, in microseconds. */ ! private final int updatePeriod; /** * A label for the units in which the control values are expressed, such as * "dB" for decibels. */
*** 332,341 **** --- 332,342 ---- /** * Provides a string representation of the control. * * @return a string description */ + @Override public String toString() { return new String(getType() + " with current value: " + getValue() + " " + units + " (range: " + minimum + " - " + maximum + ")"); }
< prev index next >