org.xith3d.schedops.values
Class KeyFloatAdjuster

java.lang.Object
  extended by org.xith3d.schedops.values.Adjuster
      extended by org.xith3d.schedops.values.KeyFloatAdjuster
All Implemented Interfaces:
org.jagatoo.datatypes.NamedObject, ScheduledOperation, Updatable

public class KeyFloatAdjuster
extends Adjuster

Add comment here...


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.schedops.values.Adjuster
Adjuster.Mode
 
Field Summary
 
Fields inherited from class org.xith3d.schedops.values.Adjuster
changed, name, RESOLUTION
 
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)
           
 
Method Summary
 float getSpeed()
           
 java.lang.String getState()
          Get the state of this adjuster
 void setSpeed(float speed)
          Adjust the speed
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 
Methods inherited from class org.xith3d.schedops.values.Adjuster
getName, hasChanged, isAlive, isPersistent, print, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFloatAdjuster

public KeyFloatAdjuster(java.lang.String name,
                        FloatProperty data,
                        float speed,
                        Adjuster.Mode mode,
                        org.jagatoo.input.devices.Keyboard keyboard)
Parameters:
name - Name
data - FloatProperty
speed - Speed, in units/second
mode - Mode.SEQUENTIAL or Mode.CONTINUOUS
keyboard - 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 - Name
data - FloatProperty
speed - Speed, in units/second
mode - Mode.SEQUENTIAL or Mode.CONTINUOUS
keyboard - Keyboard
ADD_KEY - Key code for add
SUB_KEY - Key code for sub
DISP_KEY - Key code for print
Method Detail

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.

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