public class NumericControlAdapter extends AtomicControlAdapter implements NumericControl
| Modifier and Type | Field and Description |
|---|---|
protected float |
defaultValue |
protected float |
granularity |
protected boolean |
logarithmic |
protected float |
lowerLimit |
protected float |
upperLimit |
component, enabled, isdefault, parent| Constructor and Description |
|---|
NumericControlAdapter() |
NumericControlAdapter(float ll,
float ul,
float dv,
float gran,
boolean log,
Component comp,
boolean def,
Control parent) |
| Modifier and Type | Method and Description |
|---|---|
float |
getDefaultValue()
Returns the value that is the default for this control.
|
float |
getGranularity()
Returns the granularity of the numeric value.
|
float |
getLogarithmicBase()
???
|
float |
getLowerLimit()
The smallest value assignable to this control.
|
float |
getUpperLimit()
The largest value assignable to this control.
|
float |
getValue()
Returns the value that the control currently represents.
|
boolean |
isLogarithmic()
???
|
float |
setDefaultValue(float value)
Sets the default value for the control.
|
float |
setValue(float value)
Sets the value on the control and returns the value that was actually
set.
|
addControlChangeListener, getControlComponent, getEnabled, getParent, getTip, getVisible, informListeners, isDefault, isReadOnly, removeControlChangeListener, setEnabled, setParent, setTip, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddControlChangeListener, getEnabled, getParent, getTip, getVisible, isDefault, isReadOnly, removeControlChangeListener, setEnabled, setTip, setVisiblegetControlComponentprotected float lowerLimit
protected float upperLimit
protected float defaultValue
protected float granularity
protected boolean logarithmic
public float getLowerLimit()
getLowerLimit in interface NumericControlpublic float getUpperLimit()
getUpperLimit in interface NumericControlpublic float getValue()
getValue in interface NumericControlpublic float setValue(float value)
setValue in interface NumericControlpublic float getDefaultValue()
getDefaultValue in interface NumericControlpublic float setDefaultValue(float value)
setDefaultValue in interface NumericControlpublic float getGranularity()
getGranularity in interface NumericControlpublic boolean isLogarithmic()
isLogarithmic in interface NumericControlpublic float getLogarithmicBase()
getLogarithmicBase in interface NumericControlCopyright © 2012 code4tv.com. All Rights Reserved.