net.jinx.action.input.robot
Class SliderControl

java.lang.Object
  extended by net.jinx.action.input.robot.AbstractControl
      extended by net.jinx.action.input.robot.SliderControl
All Implemented Interfaces:
Control

public abstract class SliderControl
extends AbstractControl

SliderControl is an AbstractControl extension that expects input values from zero to one, much like a throttle. It has magnitude but not direction.

API Stability: Alpha.


Field Summary
 
Fields inherited from interface net.jinx.action.input.robot.Control
TYPE_AXIS, TYPE_BUTTON, TYPE_SLIDER, TYPE_TOGGLE
 
Constructor Summary
protected SliderControl(java.lang.String name)
          Constructs a new SliderControl with the given name.
 
Method Summary
 void setValue(float value)
          Clamps the values from zero to one.
 
Methods inherited from class net.jinx.action.input.robot.AbstractControl
getName, getType, getValue, valueChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderControl

protected SliderControl(java.lang.String name)
Constructs a new SliderControl with the given name.

Parameters:
name - the name to use for this Control.
Method Detail

setValue

public void setValue(float value)
Clamps the values from zero to one.

Specified by:
setValue in interface Control
Overrides:
setValue in class AbstractControl
Parameters:
value - the new value.