
org.robolectric.shadows.ShadowMatrix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.graphics.Matrix;
import java.util.List;
import java.util.Map;
import org.robolectric.annotation.Implements;
import org.robolectric.shadows.ShadowMatrix.Picker;
@SuppressWarnings({"UnusedDeclaration"})
@Implements(value = Matrix.class, shadowPicker = Picker.class)
public abstract class ShadowMatrix {
public static final String TRANSLATE = "translate";
public static final String SCALE = "scale";
public static final String ROTATE = "rotate";
public static final String SINCOS = "sincos";
public static final String SKEW = "skew";
public static final String MATRIX = "matrix";
/**
* A list of all 'pre' operations performed on this Matrix. The last operation performed will be
* first in the list.
*
* @return A list of all 'pre' operations performed on this Matrix.
*/
public abstract List getPreOperations();
/**
* A list of all 'post' operations performed on this Matrix. The last operation performed will be
* last in the list.
*
* @return A list of all 'post' operations performed on this Matrix.
*/
public abstract List getPostOperations();
/**
* A map of all 'set' operations performed on this Matrix.
*
* @return A map of all 'set' operations performed on this Matrix.
*/
public abstract Map getSetOperations();
public abstract String getDescription();
/** Shadow picker for {@link Matrix}. */
public static final class Picker extends GraphicsShadowPicker
© 2015 - 2025 Weber Informatics LLC | Privacy Policy