Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.bu
Class BuEmptyIcon  view BuEmptyIcon download BuEmptyIcon.java

java.lang.Object
  extended bycom.memoire.bu.BuEmptyIcon
All Implemented Interfaces:
javax.swing.Icon, java.io.Serializable

public class BuEmptyIcon
extends java.lang.Object
implements javax.swing.Icon, java.io.Serializable

A simple empty icon. It's possible to specify the size when you instanciate it.


Field Summary
private  int height_
           
private  int width_
           
 
Constructor Summary
BuEmptyIcon()
           
BuEmptyIcon(int _width, int _height)
           
 
Method Summary
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 void paintIcon(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y)
          Draws the icon at the location (x, y) on the specified graphics device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width_

private int width_

height_

private int height_
Constructor Detail

BuEmptyIcon

public BuEmptyIcon()

BuEmptyIcon

public BuEmptyIcon(int _width,
                   int _height)
Method Detail

paintIcon

public void paintIcon(java.awt.Component _c,
                      java.awt.Graphics _g,
                      int _x,
                      int _y)
Description copied from interface: javax.swing.Icon
Draws the icon at the location (x, y) on the specified graphics device.

Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon