generalPath.append(configureArc(x + w - 2 * topRightWidth, y, 2 * topRightWidth, 2 * topRightHeight, 90, -45,
Arc2D.OPEN), true);
generalPath.append(configureArc(x + w - 2 * topRightWidth, y, 2 * topRightWidth, 2 * topRightHeight, 45, -45,
Arc2D.OPEN), true);
generalPath.lineTo((float) (x + w), (float) (y + h - bottomRightHeight));//4
generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
2 * bottomRightHeight, 0, -45, Arc2D.OPEN), true);
generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
2 * bottomRightHeight, -45, -45, Arc2D.OPEN), true);