java.lang.Object | |
↳ | android.view.animation.Transformation |
Defines the transformation to be applied at one point in time of an Animation.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TYPE_ALPHA | Indicates a transformation that applies an alpha only (uses an identity matrix.) | ||||||||||
TYPE_BOTH | Indicates a transformation that applies an alpha and a matrix. | ||||||||||
TYPE_IDENTITY | Indicates a transformation that has no effect (alpha = 1 and identity matrix.) | ||||||||||
TYPE_MATRIX | Indicates a transformation that applies a matrix only (alpha = 1.) | ||||||||||
mAlpha | |||||||||||
mMatrix | |||||||||||
mTransformationType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new transformation with alpha = 1 and the identity matrix.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Reset the transformation to a state that leaves the object
being animated in an unmodified state.
| |||||||||||
Apply this Transformation to an existing Transformation, e.g.
| |||||||||||
Indicates the nature of this transformation.
| |||||||||||
Clones the specified transformation.
| |||||||||||
Sets the degree of transparency
| |||||||||||
Sets the transformation type.
| |||||||||||
Return a string representation of the transformation in a compact form.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Indicates a transformation that applies an alpha only (uses an identity matrix.)
Indicates a transformation that applies an alpha and a matrix.
Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
Indicates a transformation that applies a matrix only (alpha = 1.)
Creates a new transformation with alpha = 1 and the identity matrix.
Reset the transformation to a state that leaves the object being animated in an unmodified state. The transformation type is TYPE_BOTH by default.
Apply this Transformation to an existing Transformation, e.g. apply a scale effect to something that has already been rotated.
Indicates the nature of this transformation.
Clones the specified transformation.
t | The transformation to clone. |
---|
Sets the degree of transparency
alpha | 1.0 means fully opaqe and 0.0 means fully transparent |
---|
Sets the transformation type.
transformationType | One of TYPE_ALPHA, TYPE_MATRIX, TYPE_BOTH or TYPE_IDENTITY. |
---|
Return a string representation of the transformation in a compact form.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation simply concatenates the class name, the '@' sign and a hexadecimal representation of the object's hashCode(), that is, it is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())