Java tutorial
//package com.java2s; import android.graphics.RectF; import android.util.Log; public class Main { public static RectF createBaseRect(RectF graphRect, RectF marginRect) { Log.d("GammaGraph", "function createDrawRect"); return new RectF(graphRect.left + marginRect.left, graphRect.top + marginRect.top, graphRect.right, graphRect.bottom); } }