IT. Expert System.

Android Reference

Transformation


android.view.animation

Class Transformation



  • public class Transformation
    extends Object
    Defines the transformation to be applied at one point in time of an Animation.
    • Field Detail

      • TYPE_IDENTITY

        public static int TYPE_IDENTITY
        Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
      • TYPE_ALPHA

        public static int TYPE_ALPHA
        Indicates a transformation that applies an alpha only (uses an identity matrix.)
      • TYPE_MATRIX

        public static int TYPE_MATRIX
        Indicates a transformation that applies a matrix only (alpha = 1.)
      • TYPE_BOTH

        public static int TYPE_BOTH
        Indicates a transformation that applies an alpha and a matrix.
      • mMatrix

        protected Matrix mMatrix
      • mAlpha

        protected float mAlpha
      • mTransformationType

        protected int mTransformationType
    • Constructor Detail

      • Transformation

        public Transformation()
        Creates a new transformation with alpha = 1 and the identity matrix.
    • Method Detail

      • clear

        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.
      • set

        public void set(Transformation t)
        Clones the specified transformation.
        Parameters:
        t - The transformation to clone.
      • compose

        public void compose(Transformation t)
        Apply this Transformation to an existing Transformation, e.g. apply a scale effect to something that has already been rotated.
        Parameters:
        t -
      • getMatrix

        public Matrix getMatrix()
        Returns:
        The 3x3 Matrix representing the trnasformation to apply to the coordinates of the object being animated
      • setAlpha

        public void setAlpha(float alpha)
        Sets the degree of transparency
        Parameters:
        alpha - 1.0 means fully opaqe and 0.0 means fully transparent
      • getAlpha

        public float getAlpha()
        Returns:
        The degree of transparency
      • toString

        public String toString()
        Description copied from class: Object
        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.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • toShortString

        public String toShortString()
        Return a string representation of the transformation in a compact form.
      • printShortString

        public void printShortString(PrintWriter pw)
        Print short string, to optimize dumping.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 474 / 158861747. Delta: 0.04399 с