rgraphics.setPaint(gradientBottom);
rgraphics.fillRect(0, 0, width, height);
GeneralPath mid = new GeneralPath();
mid.moveTo(width, height / 2);
mid.quadTo(width / 2, height / 4, 0, height / 2);
// rgraphics.setClip(new Rectangle(0, 0, width / 2, height));
// rgraphics
// .setClip(new Rectangle(width / 2, 0, width - width / 2, height));
rgraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);