org.xith3d.schedops.values
Class KeyFloatAdjuster
java.lang.Object
org.xith3d.schedops.values.Adjuster
org.xith3d.schedops.values.KeyFloatAdjuster
- All Implemented Interfaces:
- org.jagatoo.datatypes.NamedObject, ScheduledOperation, Updatable
public class KeyFloatAdjuster
- extends Adjuster
Add comment here...
|
Constructor Summary |
KeyFloatAdjuster(java.lang.String name,
FloatProperty data,
float speed,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard)
|
KeyFloatAdjuster(java.lang.String name,
FloatProperty data,
float speed,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard,
org.jagatoo.input.devices.components.Key ADD_KEY,
org.jagatoo.input.devices.components.Key SUB_KEY,
org.jagatoo.input.devices.components.Key DISP_KEY)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyFloatAdjuster
public KeyFloatAdjuster(java.lang.String name,
FloatProperty data,
float speed,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard)
- Parameters:
name - Namedata - FloatPropertyspeed - Speed, in units/secondmode - Mode.SEQUENTIAL or Mode.CONTINUOUSkeyboard - Keyboard
KeyFloatAdjuster
public KeyFloatAdjuster(java.lang.String name,
FloatProperty data,
float speed,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard,
org.jagatoo.input.devices.components.Key ADD_KEY,
org.jagatoo.input.devices.components.Key SUB_KEY,
org.jagatoo.input.devices.components.Key DISP_KEY)
- Parameters:
name - Namedata - FloatPropertyspeed - Speed, in units/secondmode - Mode.SEQUENTIAL or Mode.CONTINUOUSkeyboard - KeyboardADD_KEY - Key code for addSUB_KEY - Key code for subDISP_KEY - Key code for print
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- Updates this Updatable object.
- Parameters:
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
getState
public java.lang.String getState()
- Get the state of this adjuster
- Specified by:
getState in class Adjuster
getSpeed
public float getSpeed()
- Returns:
- the adjuster speed, in units/second
setSpeed
public void setSpeed(float speed)
- Adjust the speed
- Parameters:
speed - New speed, in units/second