dsto.dfc.swing.icons
Class NullIcon
java.lang.Object
dsto.dfc.swing.icons.NullIcon
- All Implemented Interfaces:
- Serializable, Icon
public class NullIcon
- extends Object
- implements Icon, Serializable
An icon that displays nothing. Useful for filling in blank areas.
- Version:
- $Revision$
- See Also:
- Serialized Form
Constructor Summary |
NullIcon(int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
width
protected int width
height
protected int height
NullIcon
public NullIcon(int width,
int height)
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
Copyright © 2008 Commonwealth of Australia