org.xith3d.utility.input
Class KeyAdjustableFloat

java.lang.Object
  extended by org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
      extended by org.xith3d.utility.input.KeyAdjustableFloat
All Implemented Interfaces:
ScheduledOperation, Updatable

public class KeyAdjustableFloat
extends ScheduledOperationImpl

A float value adjustable by keyboard events. You can adjust the keys which are used to increase/decrease the value.


Constructor Summary
KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown, org.jagatoo.input.devices.components.Key vkUp, float speed, OperationScheduler opSched)
          New KeyAdjustableFloat
KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown, org.jagatoo.input.devices.components.Key vkUp, org.jagatoo.input.devices.components.Key vkDisp, float speed, OperationScheduler opSched)
          New KeyAdjustableFloat
 
Method Summary
 float getValue()
           
 void setValue(float value)
           
 void setValue(java.lang.Float value)
           
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 
Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
isAlive, isPersistent, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyAdjustableFloat

public KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
                          org.jagatoo.input.devices.components.Key vkUp,
                          org.jagatoo.input.devices.components.Key vkDisp,
                          float speed,
                          OperationScheduler opSched)
New KeyAdjustableFloat

Parameters:
vkDown -
vkUp -
vkDisp -
speed -
opSched -

KeyAdjustableFloat

public KeyAdjustableFloat(org.jagatoo.input.devices.components.Key vkDown,
                          org.jagatoo.input.devices.components.Key vkUp,
                          float speed,
                          OperationScheduler opSched)
New KeyAdjustableFloat

Parameters:
vkDown -
vkUp -
speed -
opSched -
Method Detail

setValue

public void setValue(float value)

setValue

public void setValue(java.lang.Float value)

getValue

public final float getValue()

update

public void update(long gameTime,
                   long frameTime,
                   UpdatingThread.TimingMode timingMode)
Updates this Updatable object.

Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.