java.lang.Object | |
↳ | android.view.animation.Transformation |
Defines the transformation to be applied at one point in time of an Animation.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_ALPHA | Indicates a transformation that applies an alpha only (uses an identity matrix.) | |||||||||
int | TYPE_BOTH | Indicates a transformation that applies an alpha and a matrix. | |||||||||
int | TYPE_IDENTITY | Indicates a transformation that has no effect (alpha = 1 and identity matrix.) | |||||||||
int | TYPE_MATRIX | Indicates a transformation that applies a matrix only (alpha = 1.) |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
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.
TYPE_ALPHA
,
TYPE_MATRIX
,
TYPE_BOTH
or
TYPE_IDENTITY
.
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 is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.