1 /*********************************************************************
5 * Purpose : Painting details for rendering a blank icon.
7 * Copyright : Written by and Copyright (C) 2003 the SourceForge
8 * Privoxy team. http://www.privoxy.org/
10 * Based on the Internet Junkbuster originally written
11 * by and Copyright (C) 1997 Anonymous Coders and
12 * Junkbusters Corporation. http://www.junkbusters.com
14 * This program is free software; you can redistribute it
15 * and/or modify it under the terms of the GNU General
16 * Public License as published by the Free Software
17 * Foundation; either version 2 of the License, or (at
18 * your option) any later version.
20 * This program is distributed in the hope that it will
21 * be useful, but WITHOUT ANY WARRANTY; without even the
22 * implied warranty of MERCHANTABILITY or FITNESS FOR A
23 * PARTICULAR PURPOSE. See the GNU General Public
24 * License for more details.
26 * The GNU General Public License should be included with
27 * this file. If not, you can view it at
28 * http://www.gnu.org/copyleft/gpl.html
29 * or write to the Free Software Foundation, Inc., 59
30 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 *********************************************************************/
36 package org.privoxy.activityconsole;
39 import javax.swing. *;
42 * Painting details for rendering a blank icon.
43 * @author Last Modified By: $Author$
44 * @version $Rev$-$Date$$State$
46 public class BlankIcon implements Icon
49 private static final String
50 COPYRIGHT = org.privoxy.activityconsole.Copyright.COPYRIGHT;
52 private Color fillColor;
60 public BlankIcon(Color color, int size)
66 public void paintIcon(Component c, Graphics g, int x, int y)
68 if (fillColor != null)
70 g.setColor(fillColor);
71 g.drawRect(x, y, size-1, size-1);
75 public int getIconWidth()
80 public int getIconHeight()