android.animation
Class ValueAnimator

java.lang.Object
  extended by android.animation.Animator
      extended by android.animation.ValueAnimator
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ObjectAnimator

public class ValueAnimator
extends Animator


Nested Class Summary
static interface ValueAnimator.AnimatorUpdateListener
           
 
Nested classes/interfaces inherited from class android.animation.Animator
Animator.AnimatorListener
 
Field Summary
static int INFINITE
           
static int RESTART
           
static int REVERSE
           
 
Constructor Summary
ValueAnimator()
           
 
Method Summary
 void addUpdateListener(ValueAnimator.AnimatorUpdateListener listener)
           
 void cancel()
           
 ValueAnimator clone()
           
 void end()
           
 float getAnimatedFraction()
           
 Object getAnimatedValue()
           
 Object getAnimatedValue(String propertyName)
           
 long getCurrentPlayTime()
           
 long getDuration()
           
static long getFrameDelay()
           
 TimeInterpolator getInterpolator()
           
 int getRepeatCount()
           
 int getRepeatMode()
           
 long getStartDelay()
           
 PropertyValuesHolder[] getValues()
           
 boolean isRunning()
           
 boolean isStarted()
           
static ValueAnimator ofFloat(float... values)
           
static ValueAnimator ofInt(int... values)
           
static ValueAnimator ofObject(TypeEvaluator evaluator, Object... values)
           
static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values)
           
 void removeAllUpdateListeners()
           
 void removeUpdateListener(ValueAnimator.AnimatorUpdateListener listener)
           
 void reverse()
           
 void setCurrentPlayTime(long playTime)
           
 ValueAnimator setDuration(long duration)
           
 void setEvaluator(TypeEvaluator value)
           
 void setFloatValues(float... values)
           
static void setFrameDelay(long frameDelay)
           
 void setInterpolator(TimeInterpolator value)
           
 void setIntValues(int... values)
           
 void setObjectValues(Object... values)
           
 void setRepeatCount(int value)
           
 void setRepeatMode(int value)
           
 void setStartDelay(long startDelay)
           
 void setValues(PropertyValuesHolder... values)
           
 void start()
           
 String toString()
           
 
Methods inherited from class android.animation.Animator
addListener, getListeners, removeAllListeners, removeListener, setTarget, setupEndValues, setupStartValues
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESTART

public static final int RESTART
See Also:
Constant Field Values

REVERSE

public static final int REVERSE
See Also:
Constant Field Values

INFINITE

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

ValueAnimator

public ValueAnimator()
Method Detail

ofInt

public static ValueAnimator ofInt(int... values)

ofFloat

public static ValueAnimator ofFloat(float... values)

ofPropertyValuesHolder

public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values)

ofObject

public static ValueAnimator ofObject(TypeEvaluator evaluator,
                                     Object... values)

setIntValues

public void setIntValues(int... values)

setFloatValues

public void setFloatValues(float... values)

setObjectValues

public void setObjectValues(Object... values)

setValues

public void setValues(PropertyValuesHolder... values)

getValues

public PropertyValuesHolder[] getValues()

setDuration

public ValueAnimator setDuration(long duration)
Specified by:
setDuration in class Animator

getDuration

public long getDuration()
Specified by:
getDuration in class Animator

setCurrentPlayTime

public void setCurrentPlayTime(long playTime)

getCurrentPlayTime

public long getCurrentPlayTime()

getStartDelay

public long getStartDelay()
Specified by:
getStartDelay in class Animator

setStartDelay

public void setStartDelay(long startDelay)
Specified by:
setStartDelay in class Animator

getFrameDelay

public static long getFrameDelay()

setFrameDelay

public static void setFrameDelay(long frameDelay)

getAnimatedValue

public Object getAnimatedValue()

getAnimatedValue

public Object getAnimatedValue(String propertyName)

setRepeatCount

public void setRepeatCount(int value)

getRepeatCount

public int getRepeatCount()

setRepeatMode

public void setRepeatMode(int value)

getRepeatMode

public int getRepeatMode()

addUpdateListener

public void addUpdateListener(ValueAnimator.AnimatorUpdateListener listener)

removeAllUpdateListeners

public void removeAllUpdateListeners()

removeUpdateListener

public void removeUpdateListener(ValueAnimator.AnimatorUpdateListener listener)

setInterpolator

public void setInterpolator(TimeInterpolator value)
Specified by:
setInterpolator in class Animator

getInterpolator

public TimeInterpolator getInterpolator()

setEvaluator

public void setEvaluator(TypeEvaluator value)

start

public void start()
Overrides:
start in class Animator

cancel

public void cancel()
Overrides:
cancel in class Animator

end

public void end()
Overrides:
end in class Animator

isRunning

public boolean isRunning()
Specified by:
isRunning in class Animator

isStarted

public boolean isStarted()
Overrides:
isStarted in class Animator

reverse

public void reverse()

getAnimatedFraction

public float getAnimatedFraction()

clone

public ValueAnimator clone()
Overrides:
clone in class Animator

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012. All Rights Reserved.