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

Quick Search    Search Deep

Source code: com/memoire/bu/BuEmptyIcon.java


1   /**
2    * @modification $Date: 2002/01/14 18:22:55 $
3    * @statut       unstable
4    * @file         BuEmptyIcon.java
5    * @version      0.36
6    * @author       Guillaume Desnoix
7    * @email        guillaume@desnoix.com
8    * @license      GNU General Public License 2 (GPL2)
9    * @copyright    1998-2001 Guillaume Desnoix
10   */
11  
12  package com.memoire.bu;
13  
14  import com.memoire.bu.*;
15  import com.memoire.dnd.*;
16  import com.memoire.fu.*;
17  import com.memoire.re.*;
18  
19  
20  import javax.swing.*;
21  import java.awt.*;
22  import java.io.*;
23  
24  /**
25   * A simple empty icon.
26   * It's possible to specify the size when you instanciate it.
27   */
28  
29  public class BuEmptyIcon
30      implements Icon, Serializable
31  {
32    private int width_;
33    private int height_;
34  
35    public BuEmptyIcon()
36    {
37      this(0,0);
38    }
39  
40    public BuEmptyIcon(int _width, int _height)
41    {
42      width_ =_width;
43      height_=_height;
44    }
45  
46    public void paintIcon(Component _c, Graphics _g, int _x, int _y) { }
47    public int getIconWidth()  { return width_; }
48    public int getIconHeight() { return height_; }
49  }
50