English | Site Directory

Android - An Open Handset Alliance Project

android.view.animation
public class

android.view.animation.Transformation

java.lang.Object
android.view.animation.Transformation

Defines the transformation to be applied at one point in time of an Animation.

Summary

Fields

protected      float  mAlpha   
protected      Matrix  mMatrix   

Public Constructors

          Transformation()

Public Methods

        void  clear()
Reset the transformation to a state that leaves the object being animated in an unmodified state
        void  compose(Transformation t)
Apply this Transformation to an existing Transformation, e.g.
        float  getAlpha()
        Matrix  getMatrix()
        void  setAlpha(float alpha)
Sets the degree of transparency
Methods inherited from class java.lang.Object

Details

Fields

protected float mAlpha

protected Matrix mMatrix

Public Constructors

public Transformation()

Public Methods

public void clear()

Reset the transformation to a state that leaves the object being animated in an unmodified state

public void compose(Transformation t)

Apply this Transformation to an existing Transformation, e.g. apply a scale effect to something that has already been rotated.

public float getAlpha()

Returns

  • The degree of transparency

public Matrix getMatrix()

Returns

  • The 3x3 Matrix representing the trnasformation to apply to the coordinates of the object being animated

public void setAlpha(float alpha)

Sets the degree of transparency

Parameters

alpha 1.0 means fully opaqe and 0.0 means fully transparent
Build m5-rc15i - 10 Jun 2008 13:54