// Wrap in a CompositeFigure with echos of the bounding box.
// Note that the bounds here are actually bigger than the
// bounding box, which may be OK in this case.
Rectangle2D bounds = result.getBounds();
CompositeFigure composite = new CompositeFigure();
BasicRectangle rectangle = new BasicRectangle(bounds.getX() + 10.0,
bounds.getY() + 10.0, bounds.getWidth(), bounds.getHeight(),
Color.white);
composite.add(rectangle);
BasicRectangle rectangle2 = new BasicRectangle(bounds.getX() + 5.0,
bounds.getY() + 5.0, bounds.getWidth(), bounds.getHeight(),
Color.white);
composite.add(rectangle2);
BasicRectangle rectangle3 = new BasicRectangle(bounds.getX(), bounds
.getY(), bounds.getWidth(), bounds.getHeight(), Color.white);
composite.add(rectangle3);
composite.add(result);
return composite;
}