float y2 = bBox.getUpperRightY();
Point2D p0 = drawer.transformedPoint(x1, y1);
Point2D p1 = drawer.transformedPoint(x2, y1);
Point2D p2 = drawer.transformedPoint(x2, y2);
Point2D p3 = drawer.transformedPoint(x1, y2);
GeneralPath bboxPath = new GeneralPath();
bboxPath.moveTo((float) p0.getX(), (float) p0.getY());
bboxPath.lineTo((float) p1.getX(), (float) p1.getY());
bboxPath.lineTo((float) p2.getX(), (float) p2.getY());