Source code: ide/EmptyIcon.java
1
2 /* **********************************
3 File: Consoleview.java
4 Author: Felix(felix@ulise.cs.pub.ro)
5 Created on 20-3-99, 11:23 am
6 Comments: Part of the vIDE Project
7 Copyright 1999 the vIDE Team.
8 ***********************************/
9
10
11 /**
12 * Simple class implementing an empty icon
13 * @author Lucian Felix Ghita
14 * @version 1.0
15 * 20-3-99, 11:23 am
16 */
17
18 package ide;
19
20 class EmptyIcon implements javax.swing.Icon {
21 private int h;
22 private int w;
23 public EmptyIcon(int w, int h) {
24 vide.spl.showStatus("Creating costom icon renderer..");
25
26 this.h = h;
27 this.w = w;
28 }
29
30 public int getIconHeight() {return h; }
31 public int getIconWidth() {return w; }
32 public void paintIcon(java.awt.Component c, java.awt.Graphics g , int x, int y) {
33 //do nothing
34 }
35 }