Package org.robolectric.shadows
Class ShadowLegacyMatrix
java.lang.Object
org.robolectric.shadows.ShadowMatrix
org.robolectric.shadows.ShadowLegacyMatrix
@Implements(value=android.graphics.Matrix.class,
isInAndroidSdk=false)
public class ShadowLegacyMatrix
extends ShadowMatrix
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMatrix
ShadowMatrix.Picker -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void__constructor__(Matrix src) booleanprotected java.awt.geom.AffineTransformA list of all 'post' operations performed on this Matrix.A list of all 'pre' operations performed on this Matrix.A map of all 'set' operations performed on this Matrix.protected voidgetValues(float[] values) inthashCode()protected booleanprotected booleanisAffine()protected booleanmapPoint(float x, float y) protected voidmapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount) protected floatmapRadius(float radius) protected booleanprotected 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 booleanprotected 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 booleanprotected voidreset()protected voidprotected booleanprotected 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)
-
Constructor Details
-
ShadowLegacyMatrix
public ShadowLegacyMatrix()
-
-
Method Details
-
__constructor__
-
getPreOperations
A list of all 'pre' operations performed on this Matrix. The last operation performed will be first in the list.- Specified by:
getPreOperationsin classShadowMatrix- 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.- Specified by:
getPostOperationsin classShadowMatrix- Returns:
- A list of all 'post' operations performed on this Matrix.
-
getSetOperations
A map of all 'set' operations performed on this Matrix.- Specified by:
getSetOperationsin classShadowMatrix- Returns:
- A map of all 'set' operations performed on this Matrix.
-
isIdentity
@Implementation protected boolean isIdentity() -
isAffine
@Implementation protected boolean isAffine() -
rectStaysRect
@Implementation protected boolean rectStaysRect() -
getValues
@Implementation protected void getValues(float[] values) -
setValues
@Implementation protected void setValues(float[] values) -
set
-
reset
@Implementation protected void reset() -
setTranslate
@Implementation protected void setTranslate(float dx, float dy) -
setScale
@Implementation protected void setScale(float sx, float sy, float px, float py) -
setScale
@Implementation protected void setScale(float sx, float sy) -
setRotate
@Implementation protected void setRotate(float degrees, float px, float py) -
setRotate
@Implementation protected void setRotate(float degrees) -
setSinCos
@Implementation protected void setSinCos(float sinValue, float cosValue, float px, float py) -
setSinCos
@Implementation protected void setSinCos(float sinValue, float cosValue) -
setSkew
@Implementation protected void setSkew(float kx, float ky, float px, float py) -
setSkew
@Implementation protected void setSkew(float kx, float ky) -
setConcat
-
preTranslate
@Implementation protected boolean preTranslate(float dx, float dy) -
preScale
@Implementation protected boolean preScale(float sx, float sy, float px, float py) -
preScale
@Implementation protected boolean preScale(float sx, float sy) -
preRotate
@Implementation protected boolean preRotate(float degrees, float px, float py) -
preRotate
@Implementation protected boolean preRotate(float degrees) -
preSkew
@Implementation protected boolean preSkew(float kx, float ky, float px, float py) -
preSkew
@Implementation protected boolean preSkew(float kx, float ky) -
preConcat
-
postTranslate
@Implementation protected boolean postTranslate(float dx, float dy) -
postScale
@Implementation protected boolean postScale(float sx, float sy, float px, float py) -
postScale
@Implementation protected boolean postScale(float sx, float sy) -
postRotate
@Implementation protected boolean postRotate(float degrees, float px, float py) -
postRotate
@Implementation protected boolean postRotate(float degrees) -
postSkew
@Implementation protected boolean postSkew(float kx, float ky, float px, float py) -
postSkew
@Implementation protected boolean postSkew(float kx, float ky) -
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
@Implementation protected float mapRadius(float radius) -
setRectToRect
-
equals
-
hashCode
@Implementation public int hashCode() -
getDescription
- Specified by:
getDescriptionin classShadowMatrix
-