1package org.robolectric.shadows; 2 3import android.graphics.LinearGradient; 4import android.graphics.Shader; 5import org.robolectric.annotation.Implementation; 6import org.robolectric.annotation.Implements; 7 8@SuppressWarnings({"UnusedDeclaration"}) 9@Implements(LinearGradient.class) 10public class ShadowLinearGradient { 11 private float x0; 12 private float y0; 13 private float x1; 14 private float y1; 15 private int color0; 16 private int color1; 17 private Shader.TileMode tile; 18 19 @Implementation 20 public void __constructor__( 21 float x0, float y0, float x1, float y1, int color0, int color1, Shader.TileMode tile) { 22 this.x0 = x0; 23 this.y0 = y0; 24 this.x1 = x1; 25 this.y1 = y1; 26 this.color0 = color0; 27 this.color1 = color1; 28 this.tile = tile; 29 } 30 31 public float getX0() { 32 return x0; 33 } 34 35 public float getY0() { 36 return y0; 37 } 38 39 public float getX1() { 40 return x1; 41 } 42 43 public float getY1() { 44 return y1; 45 } 46 47 public int getColor0() { 48 return color0; 49 } 50 51 public int getColor1() { 52 return color1; 53 } 54 55 public Shader.TileMode getTile() { 56 return tile; 57 } 58} 59