BenQ Mobile

javax.microedition.m3g
Class AnimationController

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.AnimationController

public class AnimationController
extends Object3D

Controls the position, speed and weight of an animation sequence.


Constructor Summary
AnimationController()
          Creates a new AnimationController object.
 
Method Summary
 int getActiveIntervalEnd()
          Retrieves the ending time of the current active interval of this animation controller, in world time units.
 int getActiveIntervalStart()
          Retrieves the starting time of the current active interval of this animation controller, in world time units.
 float getPosition(int worldTime)
          Retrieves the sequence time that corresponds to the given world time.
 float getSpeed()
          Retrieves the currently set playback speed of this animation controller.
 float getWeight()
          Retrieves the currently set blending weight for this animation controller.
 void setActiveInterval(int start, int end)
          Sets the world time interval during which this animation controller is active.
 void setPosition(float sequenceTime, int worldTime)
          Sets a new playback position, relative to world time, for this animation controller.
 void setSpeed(float speed, int worldTime)
          Sets a new playback speed for this animation.
 void setWeight(float weight)
          Sets the blending weight for this animation controller.
 
Methods inherited from class javax.microedition.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationController

public AnimationController()
Creates a new AnimationController object.

Method Detail

setActiveInterval

public void setActiveInterval(int start,
                              int end)
Sets the world time interval during which this animation controller is active.


getActiveIntervalStart

public int getActiveIntervalStart()
Retrieves the starting time of the current active interval of this animation controller, in world time units.


getActiveIntervalEnd

public int getActiveIntervalEnd()
Retrieves the ending time of the current active interval of this animation controller, in world time units.


setSpeed

public void setSpeed(float speed,
                     int worldTime)
Sets a new playback speed for this animation.


getSpeed

public float getSpeed()
Retrieves the currently set playback speed of this animation controller.


setPosition

public void setPosition(float sequenceTime,
                        int worldTime)
Sets a new playback position, relative to world time, for this animation controller.


getPosition

public float getPosition(int worldTime)
Retrieves the sequence time that corresponds to the given world time.


setWeight

public void setWeight(float weight)
Sets the blending weight for this animation controller.


getWeight

public float getWeight()
Retrieves the currently set blending weight for this animation controller.


BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.