IntegerControl
instead with DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT
This class encapsulates the functionality of DynamicControl
classes of type ControlType.INT
in a simple API
IntegerSliderControl
can have its value set inside the HappyBrackets IDE using a standard slider control controller by the mouse. trackpad or arrow keys
IntegerSliderControl(Object, String, int, int, int)
IntegerControl
objects
IntegerControl
objects with the same name and ControlScope
will respond to a value change.
IntegerControl
for general information about IntegerControl
classes and how to set the value within your codepublic abstract class IntegerSliderControl extends IntegerControl
Constructor and Description |
---|
IntegerSliderControl(java.lang.Object parent_sketch,
java.lang.String name,
int initial_value,
int min_val,
int max_val)
Deprecated.
use
IntegerControl instead with DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT |
Modifier and Type | Method and Description |
---|---|
IntegerSliderControl |
setControlScope(ControlScope new_scope)
Deprecated.
Changed the scope that the control has.
|
IntegerSliderControl |
setDisplayType(DynamicControl.DISPLAY_TYPE display_type)
Deprecated.
Change how to display object
We must do this in subclass
|
getValue, setDisplayRange, setValue, setValue, valueChanged
addControlListener, addControlScopeListener, addControlTarget, addControlTarget, clearControlTargets, getDynamicControl, getSendingDevice, removeControlListener, removeControlScopeChangedListener, removeControlTarget, removeControlTarget, removeListeners, setControlTarget, setControlTarget
public IntegerSliderControl(java.lang.Object parent_sketch, java.lang.String name, int initial_value, int min_val, int max_val)
IntegerControl
instead with DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT
parent_sketch
- The parent object for controlname
- The name to Displayinitial_value
- Initial value of the objectmin_val
- Minimum value to display on Slidermax_val
- Maximum value to display on Sliderpublic IntegerSliderControl setControlScope(ControlScope new_scope)
setControlScope
in class IntegerControl
new_scope
- The new Control Scopepublic IntegerSliderControl setDisplayType(DynamicControl.DISPLAY_TYPE display_type)
setDisplayType
in class IntegerControl
display_type
- The new Control Scope