Code example for RectF

Methods: inset, mapRect

0
	 * Gets the invalidation rect. 
	 *  
	 * @return the invalidation rect 
	 */ 
	protected Rect getInvalidationRect() {
		final RectF r = new RectF( mDrawRect );
		r.inset( -mPadding, -mPadding );
		mRotateMatrix.mapRect( r );
 
		final Rect rect = new Rect( (int) r.left, (int) r.top, (int) r.right, (int) r.bottom );
		rect.inset( -mAnchorWidth * 2, -mAnchorHeight * 2 );
		return rect;
	} 
 
	/** 
	 * Gets the matrix. 
	 *  
	 * @return the matrix 
	 */ 
	public Matrix getMatrix() {
		return mMatrix;