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)
boolean
equals(Object obj)
protected java.awt.geom.AffineTransform
getAffineTransform()
String
getDescription()
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 void
getValues(float[] values)
int
hashCode()
protected boolean
invert(Matrix inverse)
protected boolean
isAffine()
protected boolean
isIdentity()
PointF
mapPoint(float x, float y)
PointF
mapPoint(PointF point)
protected void
mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount)
protected float
mapRadius(float radius)
protected boolean
mapRect(RectF destination, RectF source)
protected void
mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int vectorCount)
protected boolean
postConcat(Matrix other)
protected boolean
postRotate(float degrees)
protected boolean
postRotate(float degrees, float px, float py)
protected boolean
postScale(float sx, float sy)
protected boolean
postScale(float sx, float sy, float px, float py)
protected boolean
postSkew(float kx, float ky)
protected boolean
postSkew(float kx, float ky, float px, float py)
protected boolean
postTranslate(float dx, float dy)
protected boolean
preConcat(Matrix other)
protected boolean
preRotate(float degrees)
protected boolean
preRotate(float degrees, float px, float py)
protected boolean
preScale(float sx, float sy)
protected boolean
preScale(float sx, float sy, float px, float py)
protected boolean
preSkew(float kx, float ky)
protected boolean
preSkew(float kx, float ky, float px, float py)
protected boolean
preTranslate(float dx, float dy)
protected boolean
rectStaysRect()
protected void
reset()
protected void
set(Matrix src)
protected boolean
setConcat(Matrix a, Matrix b)
protected boolean
setRectToRect(RectF src, RectF dst, Matrix.ScaleToFit stf)
protected void
setRotate(float degrees)
protected void
setRotate(float degrees, float px, float py)
protected void
setScale(float sx, float sy)
protected void
setScale(float sx, float sy, float px, float py)
protected void
setSinCos(float sinValue, float cosValue)
protected void
setSinCos(float sinValue, float cosValue, float px, float py)
protected void
setSkew(float kx, float ky)
protected void
setSkew(float kx, float ky, float px, float py)
protected void
setTranslate(float dx, float dy)
protected void
setValues(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
-