src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java
@Override
    public void clearRect(int x, int y, int width, int height) {
        if (getBackground() == null) {
            return;  // we can't do anything
        }
        Paint saved = getPaint();
        setPaint(getBackground());
        fillRect(x, y, width, height);
        setPaint(saved);
    }
@Override
    public void clearRect(int x, int y, int width, int height) {
        if (getBackground() == null) {
            return;  // we can't do anything
        }
        Paint saved = getPaint();
        setPaint(getBackground());
        fillRect(x, y, width, height);
        setPaint(saved);
    }
Clears the specified rectangle by filling it with the current
background color.  If the background color is {@code null}, this
method will do nothing.

@param x  the x-coordinate.
@param y  the y-coordinate.
@param width  the width.
@param height  the height.

@see #getBackground()