gov.nih.nlm.swing
Class BlankIcon

java.lang.Object
  extended bygov.nih.nlm.swing.BlankIcon
All Implemented Interfaces:
Icon

public class BlankIcon
extends Object
implements Icon

Used as a filler on the column header when the user has not yet chosen to sort a column and a directional BevelArrowIcon is inappropriate.


Constructor Summary
BlankIcon()
          Instantiate an empty BlankIcon.
BlankIcon(Color color, int size)
          Instantiates a BlankIcon using the color and size specified
 
Method Summary
 int getIconHeight()
          Returns the icon height.
 int getIconWidth()
          Returns the icon width.
 void paintIcon(Component c, Graphics g, int x, int y)
          Repaints the BlankIcon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlankIcon

public BlankIcon()
Instantiate an empty BlankIcon.


BlankIcon

public BlankIcon(Color color,
                 int size)
Instantiates a BlankIcon using the color and size specified

Parameters:
color - the Color
size - the size
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Repaints the BlankIcon.

Specified by:
paintIcon in interface Icon
Parameters:
c - the Component
g - the Graphics
x - the x coordinate
y - the y coordinate

getIconWidth

public int getIconWidth()
Returns the icon width.

Specified by:
getIconWidth in interface Icon
Returns:
the icon width

getIconHeight

public int getIconHeight()
Returns the icon height.

Specified by:
getIconHeight in interface Icon
Returns:
the icon height


Copyright ©2005