android.view.animation.Transformation
Defines the transformation to be applied at
one point in time of an Animation.
Summary
Fields
public |
static |
|
int |
TYPE_ALPHA |
Indicates a transformation that applies an alpha only (uses an identity matrix.)
|
public |
static |
|
int |
TYPE_BOTH |
Indicates a transformation that applies an alpha and a matrix. |
public |
static |
|
int |
TYPE_IDENTITY |
Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
|
public |
static |
|
int |
TYPE_MATRIX |
Indicates a transformation that applies a matrix only (alpha = 1.)
|
protected |
|
|
float |
mAlpha |
|
protected |
|
|
Matrix |
mMatrix |
|
protected |
|
|
int |
mTransformationType |
|
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
public
static
int
TYPE_ALPHA
Indicates a transformation that applies an alpha only (uses an identity matrix.)
public
static
int
TYPE_BOTH
Indicates a transformation that applies an alpha and a matrix.
public
static
int
TYPE_IDENTITY
Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
public
static
int
TYPE_MATRIX
Indicates a transformation that applies a matrix only (alpha = 1.)
protected
int
mTransformationType
Public Constructors
public
Transformation()
Creates a new transformation with alpha = 1 and the identity matrix.
Public Methods
public
void
clear()
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.
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
int
getTransformationType()
Indicates the nature of this transformation.
Clones the specified transformation.
Parameters
t
| The transformation to clone.
|
public
void
setAlpha(float alpha)
Sets the degree of transparency
Parameters
alpha
| 1.0 means fully opaqe and 0.0 means fully transparent
|
public
void
setTransformationType(int transformationType)
Sets the transformation type.
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.