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

Quick Search    Search Deep

Source code: com/sshtools/sshterm/EmptyIcon.java


1   /*
2    *  Sshtools - SSHTerm
3    *
4    *  Copyright (C) 2002 Lee David Painter.
5    *
6    *  Written by: 2002 Lee David Painter <lee@sshtools.com>
7    *
8    *  This program is free software; you can redistribute it and/or
9    *  modify it under the terms of the GNU General Public License
10   *  as published by the Free Software Foundation; either version 2 of
11   *  the License, or (at your option) any later version.
12   *  This program is distributed in the hope that it will be useful,
13   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   *  GNU Library General Public License for more details.
16   *
17   *  You should have received a copy of the GNU General Public
18   *  License along with this program; if not, write to the Free Software
19   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20   */
21  package com.sshtools.sshterm;
22  
23  import java.awt.Component;
24  import java.awt.Graphics;
25  
26  import javax.swing.Icon;
27  
28  
29  public class EmptyIcon implements Icon {
30      private int w;
31      private int h;
32  
33      public EmptyIcon(int w, int h) {
34          this.w = w;
35          this.h = h;
36      }
37  
38      public void paintIcon(Component c, Graphics g, int x, int y) {
39      }
40  
41      public int getIconWidth() {
42          return w;
43      }
44  
45      public int getIconHeight() {
46          return h;
47      }
48  }