@Implements(value=android.graphics.Matrix.class) public class ShadowMatrix extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MATRIX |
static String |
ROTATE |
static String |
SCALE |
static String |
SINCOS |
static String |
SKEW |
static String |
TRANSLATE |
Constructor and Description |
---|
ShadowMatrix() |
Modifier and Type | Method and Description |
---|---|
protected void |
__constructor__(Matrix src) |
boolean |
equals(Object obj) |
protected 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) |
public static final String TRANSLATE
public static final String SCALE
public static final String ROTATE
public static final String SINCOS
public static final String SKEW
public static final String MATRIX
@Implementation protected void __constructor__(Matrix src)
public List<String> getPreOperations()
A list of all ‘pre’ operations performed on this Matrix. The last operation performed will be first in the list.
public List<String> getPostOperations()
A list of all ‘post’ operations performed on this Matrix. The last operation performed will be last in the list.
public Map<String,String> getSetOperations()
A map of all ‘set’ operations performed on this Matrix.
@Implementation protected boolean isIdentity()
@Implementation(minSdk=21) protected boolean isAffine()
@Implementation protected boolean rectStaysRect()
@Implementation protected void getValues(float[] values)
@Implementation protected void setValues(float[] values)
@Implementation protected void set(Matrix src)
@Implementation protected void reset()
@Implementation protected void setTranslate(float dx, float dy)
@Implementation protected void setScale(float sx, float sy, float px, float py)
@Implementation protected void setScale(float sx, float sy)
@Implementation protected void setRotate(float degrees, float px, float py)
@Implementation protected void setRotate(float degrees)
@Implementation protected void setSinCos(float sinValue, float cosValue, float px, float py)
@Implementation protected void setSinCos(float sinValue, float cosValue)
@Implementation protected void setSkew(float kx, float ky, float px, float py)
@Implementation protected void setSkew(float kx, float ky)
@Implementation protected boolean setConcat(Matrix a, Matrix b)
@Implementation protected boolean preTranslate(float dx, float dy)
@Implementation protected boolean preScale(float sx, float sy, float px, float py)
@Implementation protected boolean preScale(float sx, float sy)
@Implementation protected boolean preRotate(float degrees, float px, float py)
@Implementation protected boolean preRotate(float degrees)
@Implementation protected boolean preSkew(float kx, float ky, float px, float py)
@Implementation protected boolean preSkew(float kx, float ky)
@Implementation protected boolean preConcat(Matrix other)
@Implementation protected boolean postTranslate(float dx, float dy)
@Implementation protected boolean postScale(float sx, float sy, float px, float py)
@Implementation protected boolean postScale(float sx, float sy)
@Implementation protected boolean postRotate(float degrees, float px, float py)
@Implementation protected boolean postRotate(float degrees)
@Implementation protected boolean postSkew(float kx, float ky, float px, float py)
@Implementation protected boolean postSkew(float kx, float ky)
@Implementation protected boolean postConcat(Matrix other)
@Implementation protected boolean invert(Matrix inverse)
protected AffineTransform getAffineTransform()
public PointF mapPoint(float x, float y)
@Implementation protected boolean mapRect(RectF destination, RectF source)
@Implementation protected void mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount)
@Implementation protected void mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int vectorCount)
@Implementation protected float mapRadius(float radius)
@Implementation protected boolean setRectToRect(RectF src, RectF dst, Matrix.ScaleToFit stf)
@Implementation public boolean equals(Object obj)
@Implementation(minSdk=19) public int hashCode()
public String getDescription()