BenQ Mobile

javax.microedition.m3g
Class AnimationTrack

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

public class AnimationTrack
extends Object3D

Associates a KeyframeSequence with an AnimationController and an animatable property.


Field Summary
static int ALPHA
          Specifies the alpha factor of a Node, or the alpha component of the Background color, Material diffuse color, or VertexBuffer default color as an animation target.
static int AMBIENT_COLOR
          Specifies the ambient color of a Material as an animation target.
static int COLOR
          Specifies the color of a Light, Background, or Fog, or the texture blend color in Texture2D, or the VertexBuffer default color as an animation target.
static int CROP
          Specifies the cropping parameters of a Sprite3D or Background as an animation target.
static int DENSITY
          Specifies the fog density in Fog as an animation target.
static int DIFFUSE_COLOR
          Specifies the diffuse color of a Material as an animation target.
static int EMISSIVE_COLOR
          Specifies the emissive color of a Material as an animation target.
static int FAR_DISTANCE
          Specifies the far distance of a Camera or Fog as an animation target.
static int FIELD_OF_VIEW
          Specifies the field of view of a Camera as an animation target.
static int INTENSITY
          Specifies the intensity of a Light as an animation target.
static int MORPH_WEIGHTS
          Specifies the morph target weights of a MorphingMesh as an animation target.
static int NEAR_DISTANCE
          Specifies the near distance of a Camera or Fog as an animation target.
static int ORIENTATION
          Specifies the orientation component of the transformation of a Transformable object as an animation target.
static int PICKABILITY
          Specifies the picking enable flag of a Node as an animation target.
static int SCALE
          Specifies the scaling component of the transformation of a Transformable object as an animation target.
static int SHININESS
          Specifies the shininess of a Material as an animation target.
static int SPECULAR_COLOR
          Specifies the specular color of a Material as an animation target.
static int SPOT_ANGLE
          Specifies the spot angle of a Light as an animation target.
static int SPOT_EXPONENT
          Specifies the spot exponent of a Light as an animation target.
static int TRANSLATION
          Specifies the translation component of the transformation of a Transformable object as an animation target.
static int VISIBILITY
          Specifies the rendering enable flag of a Node as an animation target.
 
Constructor Summary
AnimationTrack(KeyframeSequence sequence, int property)
          Creates an animation track with the given keyframe sequence targeting the given property.
 
Method Summary
 AnimationController getController()
          Retrieves the animation controller used for controlling this animation track.
 KeyframeSequence getKeyframeSequence()
          Returns the keyframe sequence object which defines the keyframe values for this animation track.
 int getTargetProperty()
          Returns the property targeted by this AnimationTrack.
 void setController(AnimationController controller)
          Specifies the animation controller to be used for controlling this animation track.
 
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
 

Field Detail

ALPHA

public static final int ALPHA
Specifies the alpha factor of a Node, or the alpha component of the Background color, Material diffuse color, or VertexBuffer default color as an animation target.

See Also:
Constant Field Values

AMBIENT_COLOR

public static final int AMBIENT_COLOR
Specifies the ambient color of a Material as an animation target.

See Also:
Constant Field Values

COLOR

public static final int COLOR
Specifies the color of a Light, Background, or Fog, or the texture blend color in Texture2D, or the VertexBuffer default color as an animation target.

See Also:
Constant Field Values

CROP

public static final int CROP
Specifies the cropping parameters of a Sprite3D or Background as an animation target.

See Also:
Constant Field Values

DENSITY

public static final int DENSITY
Specifies the fog density in Fog as an animation target.

See Also:
Constant Field Values

DIFFUSE_COLOR

public static final int DIFFUSE_COLOR
Specifies the diffuse color of a Material as an animation target.

See Also:
Constant Field Values

EMISSIVE_COLOR

public static final int EMISSIVE_COLOR
Specifies the emissive color of a Material as an animation target.

See Also:
Constant Field Values

FAR_DISTANCE

public static final int FAR_DISTANCE
Specifies the far distance of a Camera or Fog as an animation target.

See Also:
Constant Field Values

FIELD_OF_VIEW

public static final int FIELD_OF_VIEW
Specifies the field of view of a Camera as an animation target.

See Also:
Constant Field Values

INTENSITY

public static final int INTENSITY
Specifies the intensity of a Light as an animation target.

See Also:
Constant Field Values

MORPH_WEIGHTS

public static final int MORPH_WEIGHTS
Specifies the morph target weights of a MorphingMesh as an animation target.

See Also:
Constant Field Values

NEAR_DISTANCE

public static final int NEAR_DISTANCE
Specifies the near distance of a Camera or Fog as an animation target.

See Also:
Constant Field Values

ORIENTATION

public static final int ORIENTATION
Specifies the orientation component of the transformation of a Transformable object as an animation target.

See Also:
Constant Field Values

PICKABILITY

public static final int PICKABILITY
Specifies the picking enable flag of a Node as an animation target.

See Also:
Constant Field Values

SCALE

public static final int SCALE
Specifies the scaling component of the transformation of a Transformable object as an animation target.

See Also:
Constant Field Values

SHININESS

public static final int SHININESS
Specifies the shininess of a Material as an animation target.

See Also:
Constant Field Values

SPECULAR_COLOR

public static final int SPECULAR_COLOR
Specifies the specular color of a Material as an animation target.

See Also:
Constant Field Values

SPOT_ANGLE

public static final int SPOT_ANGLE
Specifies the spot angle of a Light as an animation target.

See Also:
Constant Field Values

SPOT_EXPONENT

public static final int SPOT_EXPONENT
Specifies the spot exponent of a Light as an animation target.

See Also:
Constant Field Values

TRANSLATION

public static final int TRANSLATION
Specifies the translation component of the transformation of a Transformable object as an animation target.

See Also:
Constant Field Values

VISIBILITY

public static final int VISIBILITY
Specifies the rendering enable flag of a Node as an animation target.

See Also:
Constant Field Values
Constructor Detail

AnimationTrack

public AnimationTrack(KeyframeSequence sequence,
                      int property)
Creates an animation track with the given keyframe sequence targeting the given property.

Method Detail

setController

public void setController(AnimationController controller)
Specifies the animation controller to be used for controlling this animation track.


getController

public AnimationController getController()
Retrieves the animation controller used for controlling this animation track.


getKeyframeSequence

public KeyframeSequence getKeyframeSequence()
Returns the keyframe sequence object which defines the keyframe values for this animation track.


getTargetProperty

public int getTargetProperty()
Returns the property targeted by this AnimationTrack.


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.