| package com.xtremelabs.robolectric.shadows; |
| |
| import android.graphics.ColorMatrix; |
| import android.graphics.ColorMatrixColorFilter; |
| import com.xtremelabs.robolectric.internal.Implementation; |
| import com.xtremelabs.robolectric.internal.Implements; |
| |
| @SuppressWarnings({"UnusedDeclaration"}) |
| @Implements(ColorMatrixColorFilter.class) |
| public class ShadowColorMatrixColorFilter { |
| private ColorMatrix matrix; |
| |
| @Implementation |
| public void __constructor__(ColorMatrix matrix) { |
| this.matrix = matrix; |
| } |
| |
| @Implementation |
| public void __constructor__(float[] array) { |
| this.matrix = new ColorMatrix(array); |
| } |
| |
| @Override @Implementation |
| public String toString() { |
| return "ColorMatrixColorFilter<" + matrix + ">"; |
| } |
| } |