Example usage for android.graphics RectF toString

List of usage examples for android.graphics RectF toString

Introduction

In this page you can find the example usage for android.graphics RectF toString.

Prototype

public String toString() 

Source Link

Usage

From source file:uk.co.senab.photup.model.PhotoUpload.java

public void setCropValues(RectF cropValues) {
    if (checkCropValues(cropValues.left, cropValues.top, cropValues.right, cropValues.bottom)) {

        mCropLeft = santizeCropValue(cropValues.left);
        mCropTop = santizeCropValue(cropValues.top);
        mCropRight = santizeCropValue(cropValues.right);
        mCropBottom = santizeCropValue(cropValues.bottom);
        if (Flags.DEBUG) {
            Log.d(LOG_TAG, "Valid Crop Values: " + cropValues.toString());
        }//  w  w w.j  av  a2s .  c o  m
    } else {
        if (Flags.DEBUG) {
            Log.d(LOG_TAG, "Invalid Crop Values: " + cropValues.toString());
        }
        mCropLeft = mCropTop = MIN_CROP_VALUE;
        mCropRight = mCropBottom = MAX_CROP_VALUE;
    }

    setRequiresSaveFlag();
}