aboutsummaryrefslogtreecommitdiff
path: root/v1/src/main/java/com/xtremelabs/robolectric/shadows/ShadowTranslateAnimation.java
blob: f0beafe0363123df60a8b9b22e17bc7dabb8bc99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package com.xtremelabs.robolectric.shadows;

import android.view.animation.TranslateAnimation;
import com.xtremelabs.robolectric.internal.Implements;

@SuppressWarnings({"UnusedDeclaration"})
@Implements(TranslateAnimation.class)
public class ShadowTranslateAnimation extends ShadowAnimation {

    private int fromXType;
    private float fromXValue;
    private int toXType;
    private float toXValue;
    private int fromYType;
    private float fromYValue;
    private int toYType;
    private float toYValue;

    public void __constructor__(float fromXValue, float toXValue,
             float fromYValue, float toYValue) {
	    this.fromXType = TranslateAnimation.ABSOLUTE;
	    this.fromXValue = fromXValue;
	    this.toXType = TranslateAnimation.ABSOLUTE;
	    this.toXValue = toXValue;
	    this.fromYType = TranslateAnimation.ABSOLUTE;
	    this.fromYValue = fromYValue;
	    this.toYType = TranslateAnimation.ABSOLUTE;
	    this.toYValue = toYValue;
	}
    
    public void __constructor__(int fromXType, float fromXValue, int toXType, float toXValue,
                int fromYType, float fromYValue, int toYType, float toYValue) {
        this.fromXType = fromXType;
        this.fromXValue = fromXValue;
        this.toXType = toXType;
        this.toXValue = toXValue;
        this.fromYType = fromYType;
        this.fromYValue = fromYValue;
        this.toYType = toYType;
        this.toYValue = toYValue;
    }

    public int getFromXType() {
        return fromXType;
    }

    public float getFromXValue() {
        return fromXValue;
    }

    public int getToXType() {
        return toXType;
    }

    public float getToXValue() {
        return toXValue;
    }

    public int getFromYType() {
        return fromYType;
    }

    public float getFromYValue() {
        return fromYValue;
    }

    public int getToYType() {
        return toYType;
    }

    public float getToYValue() {
        return toYValue;
    }
}