Methods Summary |
---|
public void | clear()Reset the transformation to a state that leaves the object
being animated in an unmodified state. The transformation type is
{@link #TYPE_BOTH} by default.
if (mMatrix == null) {
mMatrix = new Matrix();
} else {
mMatrix.reset();
}
mAlpha = 1.0f;
mTransformationType = TYPE_BOTH;
|
public void | compose(android.view.animation.Transformation t)Apply this Transformation to an existing Transformation, e.g. apply
a scale effect to something that has already been rotated.
mAlpha *= t.getAlpha();
mMatrix.preConcat(t.getMatrix());
|
public float | getAlpha()
return mAlpha;
|
public android.graphics.Matrix | getMatrix()
return mMatrix;
|
public int | getTransformationType()Indicates the nature of this transformation.
return mTransformationType;
|
public void | set(android.view.animation.Transformation t)Clones the specified transformation.
mAlpha = t.getAlpha();
mMatrix.set(t.getMatrix());
mTransformationType = t.getTransformationType();
|
public void | setAlpha(float alpha)Sets the degree of transparency
mAlpha = alpha;
|
public void | setTransformationType(int transformationType)Sets the transformation type.
mTransformationType = transformationType;
|
public java.lang.String | toShortString()Return a string representation of the transformation in a compact form.
return "{alpha=" + mAlpha + " matrix=" + mMatrix.toShortString() + "}";
|
public java.lang.String | toString()
return "Transformation{alpha=" + mAlpha + " matrix="
+ mMatrix.toShortString() + "}";
|