android.view.animation
Class ScaleAnimation

java.lang.Object
  extended by android.view.animation.Animation
      extended by android.view.animation.ScaleAnimation
All Implemented Interfaces:
Cloneable

public class ScaleAnimation
extends Animation


Nested Class Summary
 
Nested classes/interfaces inherited from class android.view.animation.Animation
Animation.AnimationListener, Animation.Description
 
Field Summary
 
Fields inherited from class android.view.animation.Animation
ABSOLUTE, INFINITE, RELATIVE_TO_PARENT, RELATIVE_TO_SELF, RESTART, REVERSE, START_ON_FIRST_FRAME, ZORDER_BOTTOM, ZORDER_NORMAL, ZORDER_TOP
 
Constructor Summary
ScaleAnimation(Context context, AttributeSet attrs)
           
ScaleAnimation(float fromX, float toX, float fromY, float toY)
           
ScaleAnimation(float fromX, float toX, float fromY, float toY, float pivotX, float pivotY)
           
ScaleAnimation(float fromX, float toX, float fromY, float toY, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue)
           
 
Method Summary
protected  void applyTransformation(float interpolatedTime, Transformation t)
           
 void initialize(int width, int height, int parentWidth, int parentHeight)
           
 
Methods inherited from class android.view.animation.Animation
cancel, clone, computeDurationHint, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getTransformation, getZAdjustment, hasEnded, hasStarted, isFillEnabled, isInitialized, reset, resolveSize, restrictDuration, scaleCurrentDuration, setAnimationListener, setBackgroundColor, setDetachWallpaper, setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator, setInterpolator, setRepeatCount, setRepeatMode, setStartOffset, setStartTime, setZAdjustment, start, startNow, willChangeBounds, willChangeTransformationMatrix
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaleAnimation

public ScaleAnimation(Context context,
                      AttributeSet attrs)

ScaleAnimation

public ScaleAnimation(float fromX,
                      float toX,
                      float fromY,
                      float toY)

ScaleAnimation

public ScaleAnimation(float fromX,
                      float toX,
                      float fromY,
                      float toY,
                      float pivotX,
                      float pivotY)

ScaleAnimation

public ScaleAnimation(float fromX,
                      float toX,
                      float fromY,
                      float toY,
                      int pivotXType,
                      float pivotXValue,
                      int pivotYType,
                      float pivotYValue)
Method Detail

applyTransformation

protected void applyTransformation(float interpolatedTime,
                                   Transformation t)
Overrides:
applyTransformation in class Animation

initialize

public void initialize(int width,
                       int height,
                       int parentWidth,
                       int parentHeight)
Overrides:
initialize in class Animation


Copyright © 2008-2012. All Rights Reserved.