Java Code Examples for android.graphics.Matrix.equals()

The following are Jave code examples for showing how to use equals() of the android.graphics.Matrix class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: exciting-app   File: ImageViewTouchBase.java   Source Code and License Vote up 5 votes
@Override
public void setImageMatrix(Matrix matrix) {

	Matrix current = getImageMatrix();
	boolean needUpdate = false;

	if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
		needUpdate = true;
	}

	super.setImageMatrix(matrix);

	if (needUpdate)
		onImageMatrixChanged();
}
 
Example 2
Project: MontageCam   File: ImageViewTouchBase.java   Source Code and License Vote up 5 votes
@Override
public void setImageMatrix(Matrix matrix) {

    Matrix current = getImageMatrix();
    boolean needUpdate = false;

    if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
        needUpdate = true;
    }

    super.setImageMatrix(matrix);

    if (needUpdate) onImageMatrixChanged();
}
 
Example 3
Project: ForeverLibrary   File: ImageViewTouchBase.java   Source Code and License Vote up 5 votes
@Override
public void setImageMatrix(Matrix matrix) {
    Matrix current = getImageMatrix();
    boolean needUpdate = false;

    if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
        needUpdate = true;
    }

    super.setImageMatrix(matrix);
    if (needUpdate) {
        onImageMatrixChanged();
    }
}