com.nineoldandroids.view.animation
Class AnimatorProxy

java.lang.Object
  extended by Animation
      extended by com.nineoldandroids.view.animation.AnimatorProxy

public final class AnimatorProxy
extends Animation

A proxy class to allow for modifying post-3.0 view properties on all pre-3.0 platforms. DO NOT wrap your views with this class if you are using ObjectAnimator as it will handle that itself.


Field Summary
static boolean NEEDS_PROXY
          Whether or not the current running platform needs to be proxied.
 
Method Summary
 float getAlpha()
           
 float getPivotX()
           
 float getPivotY()
           
 float getRotation()
           
 float getRotationX()
           
 float getRotationY()
           
 float getScaleX()
           
 float getScaleY()
           
 int getScrollX()
           
 int getScrollY()
           
 float getTranslationX()
           
 float getTranslationY()
           
 float getX()
           
 float getY()
           
 void setAlpha(float alpha)
           
 void setPivotX(float pivotX)
           
 void setPivotY(float pivotY)
           
 void setRotation(float rotation)
           
 void setRotationX(float rotationX)
           
 void setRotationY(float rotationY)
           
 void setScaleX(float scaleX)
           
 void setScaleY(float scaleY)
           
 void setScrollX(int value)
           
 void setScrollY(int value)
           
 void setTranslationX(float translationX)
           
 void setTranslationY(float translationY)
           
 void setX(float x)
           
 void setY(float y)
           
static AnimatorProxy wrap(View view)
          Create a proxy to allow for modifying post-3.0 view properties on all pre-3.0 platforms.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEEDS_PROXY

public static final boolean NEEDS_PROXY
Whether or not the current running platform needs to be proxied.

Method Detail

wrap

public static AnimatorProxy wrap(View view)
Create a proxy to allow for modifying post-3.0 view properties on all pre-3.0 platforms. DO NOT wrap your views if you are using ObjectAnimator as it will handle that itself.

Parameters:
view - View to wrap.
Returns:
Proxy to post-3.0 properties.

getAlpha

public float getAlpha()

setAlpha

public void setAlpha(float alpha)

getPivotX

public float getPivotX()

setPivotX

public void setPivotX(float pivotX)

getPivotY

public float getPivotY()

setPivotY

public void setPivotY(float pivotY)

getRotation

public float getRotation()

setRotation

public void setRotation(float rotation)

getRotationX

public float getRotationX()

setRotationX

public void setRotationX(float rotationX)

getRotationY

public float getRotationY()

setRotationY

public void setRotationY(float rotationY)

getScaleX

public float getScaleX()

setScaleX

public void setScaleX(float scaleX)

getScaleY

public float getScaleY()

setScaleY

public void setScaleY(float scaleY)

getScrollX

public int getScrollX()

setScrollX

public void setScrollX(int value)

getScrollY

public int getScrollY()

setScrollY

public void setScrollY(int value)

getTranslationX

public float getTranslationX()

setTranslationX

public void setTranslationX(float translationX)

getTranslationY

public float getTranslationY()

setTranslationY

public void setTranslationY(float translationY)

getX

public float getX()

setX

public void setX(float x)

getY

public float getY()

setY

public void setY(float y)