KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sshtools > ui > swing > EmptyIcon


1 /*
2  * SSHTools - Java SSH2 API
3  *
4  * Copyright (C) 2002 Lee David Painter.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * You may also distribute it and/or modify it under the terms of the
12  * Apache style J2SSH Software License. A copy of which should have
13  * been provided with the distribution.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * License document supplied with your distribution for more details.
19  *
20  */

21
22 package com.sshtools.ui.swing;
23
24 import java.awt.Component JavaDoc;
25 import java.awt.Graphics JavaDoc;
26 import javax.swing.Icon JavaDoc;
27
28 /**
29  *
30  *
31  * @author $author$
32  * @version $Revision: 1.1 $
33  */

34
35 public class EmptyIcon
36
37     implements Icon JavaDoc {
38
39   private int w;
40
41   private int h;
42
43   /**
44    * Creates a new EmptyIcon object.
45    *
46    * @param w
47    * @param h
48    */

49
50   public EmptyIcon(int w, int h) {
51     this.w = w;
52     this.h = h;
53
54   }
55
56   /**
57    *
58    *
59    * @param c
60    * @param g
61    * @param x
62    * @param y
63    */

64
65   public void paintIcon(Component JavaDoc c, Graphics JavaDoc g, int x, int y) {
66
67   }
68
69   /**
70    *
71    *
72    * @return
73    */

74
75   public int getIconWidth() {
76     return w;
77
78   }
79
80   /**
81    *
82    *
83    * @return
84    */

85
86   public int getIconHeight() {
87     return h;
88
89   }
90
91 }
92
Popular Tags