private void paintBackground(WmsRequest request, Graphics2D g) { g.setColor(request.getBackgroundColor()); g.setBackground(request.getBackgroundColor()); if (request.isTransparent()) g.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR)); else g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.0f)); g.fillRect(0, 0, 100, 100); g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f)); }