FileDocCategorySizeDatePackage
NumericControl.javaAPI DocJMF 2.1.1e1526Mon May 12 12:20:56 BST 2003com.sun.media.controls

NumericControl

public interface NumericControl implements AtomicControl
A control that represents the state by a numeric value. The value can be any number represented as a float as long as it falls within the range and has the specified granularity/accuracy. For example, if the lower limit is 0 and the upper limit is 255 and the granularity is 1, then it can be assigned any integer value from 0 to 255.

Fields Summary
Constructors Summary
Methods Summary
public floatgetDefaultValue()
Returns the value that is the default for this control.

public floatgetGranularity()
Returns the granularity of the numeric value.

public floatgetLogarithmicBase()
???

public floatgetLowerLimit()
The smallest value assignable to this control.

public floatgetUpperLimit()
The largest value assignable to this control.

public floatgetValue()
Returns the value that the control currently represents.

public booleanisLogarithmic()
???

public floatsetDefaultValue(float value)
Sets the default value for the control.

public floatsetValue(float value)
Sets the value on the control and returns the value that was actually set.