|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.animation.Transformation
public class Transformation
Defines the transformation to be applied at one point in time of an Animation.
| Field Summary | |
|---|---|
protected float |
mAlpha
|
protected Matrix |
mMatrix
|
protected int |
mTransformationType
|
static int |
TYPE_ALPHA
Indicates a transformation that applies an alpha only (uses an identity matrix.) |
static int |
TYPE_BOTH
Indicates a transformation that applies an alpha and a matrix. |
static int |
TYPE_IDENTITY
Indicates a transformation that has no effect (alpha = 1 and identity matrix.) |
static int |
TYPE_MATRIX
Indicates a transformation that applies a matrix only (alpha = 1.) |
| Constructor Summary | |
|---|---|
Transformation()
Creates a new transformation with alpha = 1 and the identity matrix. |
|
| Method Summary | |
|---|---|
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()
|
int |
getTransformationType()
Indicates the nature of this transformation. |
void |
set(Transformation t)
Clones the specified transformation. |
void |
setAlpha(float alpha)
Sets the degree of transparency |
void |
setTransformationType(int transformationType)
Sets the transformation type. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int TYPE_IDENTITY
public static int TYPE_ALPHA
public static int TYPE_MATRIX
public static int TYPE_BOTH
protected Matrix mMatrix
protected float mAlpha
protected int mTransformationType
| Constructor Detail |
|---|
public Transformation()
| Method Detail |
|---|
public void clear()
TYPE_BOTH by default.
public int getTransformationType()
TYPE_ALPHA, TYPE_MATRIX,
TYPE_BOTH or TYPE_IDENTITY.public void setTransformationType(int transformationType)
transformationType - One of TYPE_ALPHA,
TYPE_MATRIX, TYPE_BOTH or
TYPE_IDENTITY.public void set(Transformation t)
t - The transformation to clone.public void compose(Transformation t)
t - public Matrix getMatrix()
public void setAlpha(float alpha)
alpha - 1.0 means fully opaqe and 0.0 means fully transparentpublic float getAlpha()
public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||