com.jgoodies.uif.util
Class NullIcon
java.lang.Object
com.jgoodies.uif.util.NullIcon
- All Implemented Interfaces:
- Icon
public final class NullIcon
- extends Object
- implements Icon
An implementation of the Icon
interface
that has a size but does not render any content.
- Version:
- $Revision: 1.5 $
- Author:
- Karsten Lentzsch
Constructor Summary |
NullIcon(Dimension size)
Constructs a NullIcon with the given size. |
NullIcon(int width,
int height)
Constructs a NullIcon with the given size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullIcon
public NullIcon(Dimension size)
- Constructs a
NullIcon
with the given size.
- Parameters:
size
- the dimension of this NullIcon
NullIcon
public NullIcon(int width,
int height)
- Constructs a
NullIcon
with the given size.
- Parameters:
width
- the icon widthheight
- the icon height
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.