|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.action.input.robot.AbstractControl
public abstract class AbstractControl
Abstract implementation of Control with most parts implemented for you. All
you have to do is implement the valueChange() method.
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 |
AbstractControl(java.lang.String name,
int type)
Constructs an AbstractControl. |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of this Control. |
int |
getType()
Returns the type constant for this Control. |
float |
getValue()
Returns the value of this Control. |
void |
setValue(float value)
Sets the value of this Control. |
protected abstract void |
valueChange()
This is called when the value of this control has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractControl(java.lang.String name,
int type)
name - the name of this Control.type - one of the TYPE_* constants from the Control interface. No
checking will be performed on this value.| Method Detail |
|---|
public java.lang.String getName()
getName in interface Controlpublic void setValue(float value)
setValue in interface Controlvalue - the new value for this Control.protected abstract void valueChange()
public float getValue()
getValue in interface Controlpublic int getType()
getType in interface Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||