1 package com.xtremelabs.robolectric.shadows; 2 3 import android.view.animation.TranslateAnimation; 4 import com.xtremelabs.robolectric.internal.Implements; 5 6 @SuppressWarnings({"UnusedDeclaration"}) 7 @Implements(TranslateAnimation.class) 8 public class ShadowTranslateAnimation extends ShadowAnimation { 9 10 private int fromXType; 11 private float fromXValue; 12 private int toXType; 13 private float toXValue; 14 private int fromYType; 15 private float fromYValue; 16 private int toYType; 17 private float toYValue; 18 __constructor__(float fromXValue, float toXValue, float fromYValue, float toYValue)19 public void __constructor__(float fromXValue, float toXValue, 20 float fromYValue, float toYValue) { 21 this.fromXType = TranslateAnimation.ABSOLUTE; 22 this.fromXValue = fromXValue; 23 this.toXType = TranslateAnimation.ABSOLUTE; 24 this.toXValue = toXValue; 25 this.fromYType = TranslateAnimation.ABSOLUTE; 26 this.fromYValue = fromYValue; 27 this.toYType = TranslateAnimation.ABSOLUTE; 28 this.toYValue = toYValue; 29 } 30 __constructor__(int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue)31 public void __constructor__(int fromXType, float fromXValue, int toXType, float toXValue, 32 int fromYType, float fromYValue, int toYType, float toYValue) { 33 this.fromXType = fromXType; 34 this.fromXValue = fromXValue; 35 this.toXType = toXType; 36 this.toXValue = toXValue; 37 this.fromYType = fromYType; 38 this.fromYValue = fromYValue; 39 this.toYType = toYType; 40 this.toYValue = toYValue; 41 } 42 getFromXType()43 public int getFromXType() { 44 return fromXType; 45 } 46 getFromXValue()47 public float getFromXValue() { 48 return fromXValue; 49 } 50 getToXType()51 public int getToXType() { 52 return toXType; 53 } 54 getToXValue()55 public float getToXValue() { 56 return toXValue; 57 } 58 getFromYType()59 public int getFromYType() { 60 return fromYType; 61 } 62 getFromYValue()63 public float getFromYValue() { 64 return fromYValue; 65 } 66 getToYType()67 public int getToYType() { 68 return toYType; 69 } 70 getToYValue()71 public float getToYValue() { 72 return toYValue; 73 } 74 } 75