2
* $Id: EmptyIcon.java 1997 2007-05-20 21:17:52Z kschaefe $
4
* Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5
* Santa Clara, California 95054, U.S.A. All rights reserved.
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library 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 GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
package org.jdesktop.swingx.icon;
23
import java.awt.Component;
24
import java.awt.Graphics;
25
import java.io.Serializable;
27
import javax.swing.Icon;
30
* An empty icon with arbitrary width and height.
32
public final class EmptyIcon implements Icon, Serializable {
41
public EmptyIcon(int width, int height) {
46
public int getIconHeight() {
50
public int getIconWidth() {
54
public void paintIcon(Component c, Graphics g, int x, int y) {