dsto.dfc.swing.icons
Class NullIcon

java.lang.Object
  extended by 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

Field Summary
protected  int height
           
protected  int width
           
 
Constructor Summary
NullIcon(int width, int height)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected int width

height

protected int height
Constructor Detail

NullIcon

public NullIcon(int width,
                int height)
Method Detail

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