IT. Expert System.

Android Reference

RotateAnimation


android.view.animation

Class RotateAnimation

  • All Implemented Interfaces:
    Cloneable


    public class RotateAnimation
    extends Animation
    An animation that controls the rotation of an object. This rotation takes place in the X-Y plane. You can specify the point to use for the center of the rotation, where (0,0) is the top left point. If not specified, (0,0) is the default rotation point.
    • Constructor Detail

      • RotateAnimation

        public RotateAnimation(Context context,
                       AttributeSet attrs)
        Constructor used when a RotateAnimation is loaded from a resource.
        Parameters:
        context - Application context to use
        attrs - Attribute set from which to read values
      • RotateAnimation

        public RotateAnimation(float fromDegrees,
                       float toDegrees)
        Constructor to use when building a RotateAnimation from code. Default pivotX/pivotY point is (0,0).
        Parameters:
        fromDegrees - Rotation offset to apply at the start of the animation.
        toDegrees - Rotation offset to apply at the end of the animation.
      • RotateAnimation

        public RotateAnimation(float fromDegrees,
                       float toDegrees,
                       float pivotX,
                       float pivotY)
        Constructor to use when building a RotateAnimation from code
        Parameters:
        fromDegrees - Rotation offset to apply at the start of the animation.
        toDegrees - Rotation offset to apply at the end of the animation.
        pivotX - The X coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the left edge.
        pivotY - The Y coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the top edge.
      • RotateAnimation

        public RotateAnimation(float fromDegrees,
                       float toDegrees,
                       int pivotXType,
                       float pivotXValue,
                       int pivotYType,
                       float pivotYValue)
        Constructor to use when building a RotateAnimation from code
        Parameters:
        fromDegrees - Rotation offset to apply at the start of the animation.
        toDegrees - Rotation offset to apply at the end of the animation.
        pivotXType - Specifies how pivotXValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
        pivotXValue - The X coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the left edge. This value can either be an absolute number if pivotXType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.
        pivotYType - Specifies how pivotYValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
        pivotYValue - The Y coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the top edge. This value can either be an absolute number if pivotYType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.
    • Method Detail

      • applyTransformation

        protected void applyTransformation(float interpolatedTime,
                               Transformation t)
        Description copied from class: Animation
        Helper for getTransformation. Subclasses should implement this to apply their transforms given an interpolation value. Implementations of this method should always replace the specified Transformation or document they are doing otherwise.
        Overrides:
        applyTransformation in class Animation
        Parameters:
        interpolatedTime - The value of the normalized time (0.0 to 1.0) after it has been run through the interpolation function.
        t - The Transformation object to fill in with the current transforms.
      • initialize

        public void initialize(int width,
                      int height,
                      int parentWidth,
                      int parentHeight)
        Description copied from class: Animation
        Initialize this animation with the dimensions of the object being animated as well as the objects parents. (This is to support animation sizes being specified relative to these dimensions.)

        Objects that interpret Animations should call this method when the sizes of the object being animated and its parent are known, and before calling Animation.getTransformation(long, android.view.animation.Transformation).

        Overrides:
        initialize in class Animation
        Parameters:
        width - Width of the object being animated
        height - Height of the object being animated
        parentWidth - Width of the animated object's parent
        parentHeight - Height of the animated object's parent


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: 3641 / . Delta: 0.04539 с