01: /*
02: * Gruntspud
03: *
04: * Copyright (C) 2002 Brett Smith.
05: *
06: * Written by: Brett Smith <t_magicthize@users.sourceforge.net>
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public License
10: * as published by the Free Software Foundation; either version 2 of
11: * the License, or (at your option) any later version.
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU Library General Public License for more details.
16: *
17: * You should have received a copy of the GNU Library General Public
18: * License along with this program; if not, write to the Free Software
19: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20: */
21:
22: package gruntspud.ui.icons;
23:
24: import java.awt.Component;
25: import java.awt.Graphics;
26:
27: import javax.swing.Icon;
28:
29: /**
30: * DOCUMENT ME!
31: *
32: * @author $author$
33: */
34: public class EmptyIcon implements Icon {
35: private int w;
36: private int h;
37:
38: /**
39: * Creates a new EmptyIcon object.
40: *
41: * @param w DOCUMENT ME!
42: * @param h DOCUMENT ME!
43: */
44: public EmptyIcon(int w, int h) {
45: this .w = w;
46: this .h = h;
47: }
48:
49: /**
50: * DOCUMENT ME!
51: *
52: * @param c DOCUMENT ME!
53: * @param g DOCUMENT ME!
54: * @param x DOCUMENT ME!
55: * @param y DOCUMENT ME!
56: */
57: public void paintIcon(Component c, Graphics g, int x, int y) {
58: }
59:
60: /**
61: * DOCUMENT ME!
62: *
63: * @return DOCUMENT ME!
64: */
65: public int getIconWidth() {
66: return w;
67: }
68:
69: /**
70: * DOCUMENT ME!
71: *
72: * @return DOCUMENT ME!
73: */
74: public int getIconHeight() {
75: return h;
76: }
77: }
|