com.jgoodies.uif.util
Class NullIcon

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

Constructor Detail

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 width
height - the icon height
Method Detail

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.