org.xith3d.schedops.values
Class KeyPoint3fAdjuster

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

public class KeyPoint3fAdjuster
extends Adjuster

Add comment here...


Nested Class Summary
static class KeyPoint3fAdjuster.Axis
           
 
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
KeyPoint3fAdjuster(java.lang.String name, org.openmali.vecmath2.Point3f data, KeyPoint3fAdjuster.Axis axis, float delta, Adjuster.Mode mode, org.jagatoo.input.devices.Keyboard keyboard)
           
KeyPoint3fAdjuster(java.lang.String name, org.openmali.vecmath2.Point3f data, KeyPoint3fAdjuster.Axis axis, float delta, 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 PRINT_KEY)
           
 
Method Summary
 float getSpeed()
           
 java.lang.String getState()
          Get the state of this adjuster
 void setAxis(KeyPoint3fAdjuster.Axis axis)
          Set the axis the adjuster act on
 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

KeyPoint3fAdjuster

public KeyPoint3fAdjuster(java.lang.String name,
                          org.openmali.vecmath2.Point3f data,
                          KeyPoint3fAdjuster.Axis axis,
                          float delta,
                          Adjuster.Mode mode,
                          org.jagatoo.input.devices.Keyboard keyboard)

KeyPoint3fAdjuster

public KeyPoint3fAdjuster(java.lang.String name,
                          org.openmali.vecmath2.Point3f data,
                          KeyPoint3fAdjuster.Axis axis,
                          float delta,
                          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 PRINT_KEY)
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

setAxis

public void setAxis(KeyPoint3fAdjuster.Axis axis)
Set the axis the adjuster act on

Parameters:
axis - can be Axis.X, Axis.Y, or Axis.Z

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