android.view.animation
Class Animation

java.lang.Object
  extended by android.view.animation.Animation
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AlphaAnimation, AnimationSet, RotateAnimation, ScaleAnimation, TranslateAnimation

public abstract class Animation
extends Object
implements Cloneable


Nested Class Summary
static interface Animation.AnimationListener
           
protected static class Animation.Description
           
 
Field Summary
static int ABSOLUTE
           
static int INFINITE
           
static int RELATIVE_TO_PARENT
           
static int RELATIVE_TO_SELF
           
static int RESTART
           
static int REVERSE
           
static int START_ON_FIRST_FRAME
           
static int ZORDER_BOTTOM
           
static int ZORDER_NORMAL
           
static int ZORDER_TOP
           
 
Constructor Summary
Animation()
           
Animation(Context context, AttributeSet attrs)
           
 
Method Summary
protected  void applyTransformation(float interpolatedTime, Transformation t)
           
 void cancel()
           
protected  Animation clone()
           
 long computeDurationHint()
           
protected  void ensureInterpolator()
           
protected  void finalize()
           
 int getBackgroundColor()
           
 boolean getDetachWallpaper()
           
 long getDuration()
           
 boolean getFillAfter()
           
 boolean getFillBefore()
           
 Interpolator getInterpolator()
           
 int getRepeatCount()
           
 int getRepeatMode()
           
protected  float getScaleFactor()
           
 long getStartOffset()
           
 long getStartTime()
           
 boolean getTransformation(long currentTime, Transformation outTransformation)
           
 boolean getTransformation(long currentTime, Transformation outTransformation, float scale)
           
 int getZAdjustment()
           
 boolean hasEnded()
           
 boolean hasStarted()
           
 void initialize(int width, int height, int parentWidth, int parentHeight)
           
 boolean isFillEnabled()
           
 boolean isInitialized()
           
 void reset()
           
protected  float resolveSize(int type, float value, int size, int parentSize)
           
 void restrictDuration(long durationMillis)
           
 void scaleCurrentDuration(float scale)
           
 void setAnimationListener(Animation.AnimationListener listener)
           
 void setBackgroundColor(int bg)
           
 void setDetachWallpaper(boolean detachWallpaper)
           
 void setDuration(long durationMillis)
           
 void setFillAfter(boolean fillAfter)
           
 void setFillBefore(boolean fillBefore)
           
 void setFillEnabled(boolean fillEnabled)
           
 void setInterpolator(Context context, int resID)
           
 void setInterpolator(Interpolator i)
           
 void setRepeatCount(int repeatCount)
           
 void setRepeatMode(int repeatMode)
           
 void setStartOffset(long startOffset)
           
 void setStartTime(long startTimeMillis)
           
 void setZAdjustment(int zAdjustment)
           
 void start()
           
 void startNow()
           
 boolean willChangeBounds()
           
 boolean willChangeTransformationMatrix()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFINITE

public static final int INFINITE
See Also:
Constant Field Values

RESTART

public static final int RESTART
See Also:
Constant Field Values

REVERSE

public static final int REVERSE
See Also:
Constant Field Values

START_ON_FIRST_FRAME

public static final int START_ON_FIRST_FRAME
See Also:
Constant Field Values

ABSOLUTE

public static final int ABSOLUTE
See Also:
Constant Field Values

RELATIVE_TO_SELF

public static final int RELATIVE_TO_SELF
See Also:
Constant Field Values

RELATIVE_TO_PARENT

public static final int RELATIVE_TO_PARENT
See Also:
Constant Field Values

ZORDER_NORMAL

public static final int ZORDER_NORMAL
See Also:
Constant Field Values

ZORDER_TOP

public static final int ZORDER_TOP
See Also:
Constant Field Values

ZORDER_BOTTOM

public static final int ZORDER_BOTTOM
See Also:
Constant Field Values
Constructor Detail

Animation

public Animation()

Animation

public Animation(Context context,
                 AttributeSet attrs)
Method Detail

clone

protected Animation clone()
                   throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

reset

public void reset()

cancel

public void cancel()

isInitialized

public boolean isInitialized()

initialize

public void initialize(int width,
                       int height,
                       int parentWidth,
                       int parentHeight)

setInterpolator

public void setInterpolator(Context context,
                            int resID)

setInterpolator

public void setInterpolator(Interpolator i)

setStartOffset

public void setStartOffset(long startOffset)

setDuration

public void setDuration(long durationMillis)

restrictDuration

public void restrictDuration(long durationMillis)

scaleCurrentDuration

public void scaleCurrentDuration(float scale)

setStartTime

public void setStartTime(long startTimeMillis)

start

public void start()

startNow

public void startNow()

setRepeatMode

public void setRepeatMode(int repeatMode)

setRepeatCount

public void setRepeatCount(int repeatCount)

isFillEnabled

public boolean isFillEnabled()

setFillEnabled

public void setFillEnabled(boolean fillEnabled)

setFillBefore

public void setFillBefore(boolean fillBefore)

setFillAfter

public void setFillAfter(boolean fillAfter)

setZAdjustment

public void setZAdjustment(int zAdjustment)

setBackgroundColor

public void setBackgroundColor(int bg)

getScaleFactor

protected float getScaleFactor()

setDetachWallpaper

public void setDetachWallpaper(boolean detachWallpaper)

getInterpolator

public Interpolator getInterpolator()

getStartTime

public long getStartTime()

getDuration

public long getDuration()

getStartOffset

public long getStartOffset()

getRepeatMode

public int getRepeatMode()

getRepeatCount

public int getRepeatCount()

getFillBefore

public boolean getFillBefore()

getFillAfter

public boolean getFillAfter()

getZAdjustment

public int getZAdjustment()

getBackgroundColor

public int getBackgroundColor()

getDetachWallpaper

public boolean getDetachWallpaper()

willChangeTransformationMatrix

public boolean willChangeTransformationMatrix()

willChangeBounds

public boolean willChangeBounds()

setAnimationListener

public void setAnimationListener(Animation.AnimationListener listener)

ensureInterpolator

protected void ensureInterpolator()

computeDurationHint

public long computeDurationHint()

getTransformation

public boolean getTransformation(long currentTime,
                                 Transformation outTransformation)

getTransformation

public boolean getTransformation(long currentTime,
                                 Transformation outTransformation,
                                 float scale)

hasStarted

public boolean hasStarted()

hasEnded

public boolean hasEnded()

applyTransformation

protected void applyTransformation(float interpolatedTime,
                                   Transformation t)

resolveSize

protected float resolveSize(int type,
                            float value,
                            int size,
                            int parentSize)

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2008-2012. All Rights Reserved.