Package org.robolectric.shadows
Class ShadowMatrix
java.lang.Object
org.robolectric.shadows.ShadowMatrix
@Implements(android.graphics.Matrix.class) public class ShadowMatrix extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShadowMatrix() -
Method Summary
Modifier and Type Method Description protected void__constructor__(Matrix src)booleanequals(Object obj)protected java.awt.geom.AffineTransformgetAffineTransform()StringgetDescription()List<String>getPostOperations()A list of all 'post' operations performed on this Matrix.List<String>getPreOperations()A list of all 'pre' operations performed on this Matrix.Map<String,String>getSetOperations()A map of all 'set' operations performed on this Matrix.protected voidgetValues(float[] values)inthashCode()protected booleaninvert(Matrix inverse)protected booleanisAffine()protected booleanisIdentity()PointFmapPoint(float x, float y)PointFmapPoint(PointF point)protected voidmapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount)protected floatmapRadius(float radius)protected booleanmapRect(RectF destination, RectF source)protected voidmapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int vectorCount)protected booleanpostConcat(Matrix other)protected booleanpostRotate(float degrees)protected booleanpostRotate(float degrees, float px, float py)protected booleanpostScale(float sx, float sy)protected booleanpostScale(float sx, float sy, float px, float py)protected booleanpostSkew(float kx, float ky)protected booleanpostSkew(float kx, float ky, float px, float py)protected booleanpostTranslate(float dx, float dy)protected booleanpreConcat(Matrix other)protected booleanpreRotate(float degrees)protected booleanpreRotate(float degrees, float px, float py)protected booleanpreScale(float sx, float sy)protected booleanpreScale(float sx, float sy, float px, float py)protected booleanpreSkew(float kx, float ky)protected booleanpreSkew(float kx, float ky, float px, float py)protected booleanpreTranslate(float dx, float dy)protected booleanrectStaysRect()protected voidreset()protected voidset(Matrix src)protected booleansetConcat(Matrix a, Matrix b)protected booleansetRectToRect(RectF src, RectF dst, Matrix.ScaleToFit stf)protected voidsetRotate(float degrees)protected voidsetRotate(float degrees, float px, float py)protected voidsetScale(float sx, float sy)protected voidsetScale(float sx, float sy, float px, float py)protected voidsetSinCos(float sinValue, float cosValue)protected voidsetSinCos(float sinValue, float cosValue, float px, float py)protected voidsetSkew(float kx, float ky)protected voidsetSkew(float kx, float ky, float px, float py)protected voidsetTranslate(float dx, float dy)protected voidsetValues(float[] values)
-
Field Details
-
TRANSLATE
- See Also:
- Constant Field Values
-
SCALE
- See Also:
- Constant Field Values
-
ROTATE
- See Also:
- Constant Field Values
-
SINCOS
- See Also:
- Constant Field Values
-
SKEW
- See Also:
- Constant Field Values
-
MATRIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ShadowMatrix
public ShadowMatrix()
-
-
Method Details
-
__constructor__
-
getPreOperations
A list of all 'pre' operations performed on this Matrix. The last operation performed will be first in the list.- Returns:
- A list of all 'pre' operations performed on this Matrix.
-
getPostOperations
A list of all 'post' operations performed on this Matrix. The last operation performed will be last in the list.- Returns:
- A list of all 'post' operations performed on this Matrix.
-
getSetOperations
A map of all 'set' operations performed on this Matrix.- Returns:
- A map of all 'set' operations performed on this Matrix.
-
isIdentity
-
isAffine
-
rectStaysRect
-
getValues
-
setValues
-
set
-
reset
-
setTranslate
-
setScale
-
setScale
-
setRotate
-
setRotate
-
setSinCos
-
setSinCos
-
setSkew
-
setSkew
-
setConcat
-
preTranslate
-
preScale
-
preScale
-
preRotate
-
preRotate
-
preSkew
-
preSkew
-
preConcat
-
postTranslate
-
postScale
-
postScale
-
postRotate
-
postRotate
-
postSkew
-
postSkew
-
postConcat
-
invert
-
getAffineTransform
protected java.awt.geom.AffineTransform getAffineTransform() -
mapPoint
-
mapPoint
-
mapRect
-
mapPoints
@Implementation protected void mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount) -
mapVectors
@Implementation protected void mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int vectorCount) -
mapRadius
-
setRectToRect
-
equals
-
hashCode
-
getDescription
-