Here you can find the source of grow(Rectangle2D.Double r, double h, double v)
public static void grow(Rectangle2D.Double r, double h, double v)
//package com.java2s; //License from project: Open Source License import java.awt.geom.Rectangle2D; public class Main { public static void grow(Rectangle2D.Double r, double h, double v) { r.x -= h;/*from w w w. j ava 2 s .c om*/ r.y -= v; r.width += h * 2.0D; r.height += v * 2.0D; } }