All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.BlankIcon

java.lang.Object
   |
   +----com.sgi.sysadm.ui.BlankIcon

public class BlankIcon
extends Object
implements Icon
A class that implements an Icon that shows no image.


Constructor Index

 o BlankIcon(int, int)
Constructor.

Method Index

 o getIconHeight()
Returns the height of the icon, as passed to the constructor.
 o getIconWidth()
Returns the width of the icon, as passed to the constructor.
 o paintIcon(Component, Graphics, int, int)
Paints the Icon

Constructors

 o BlankIcon
 public BlankIcon(int width,
                  int height)
Constructor.

Parameters:
width - The width of the Icon
height - The height of the Icon

Methods

 o getIconHeight
 public int getIconHeight()
Returns the height of the icon, as passed to the constructor.

Returns:
The height
 o getIconWidth
 public int getIconWidth()
Returns the width of the icon, as passed to the constructor.

Returns:
The width
 o paintIcon
 public void paintIcon(Component comp,
                       Graphics gr,
                       int x,
                       int y)
Paints the Icon

Parameters:
comp - The Component to be painted
gr - The Graphics object to use to paint
x - The X-coordinate at the upper left of the icon
y - The Y-coordinate at the upper left of the icon

All Packages  Class Hierarchy  This Package  Previous  Next  Index