1 56 57 package org.objectstyle.cayenne.dataview.dvmodeler; 58 59 import java.awt.Component ; 60 import java.awt.Graphics ; 61 import javax.swing.Icon ; 62 63 68 69 public class EmptyIcon implements Icon { 70 public static final Icon DEFAULT_ICON = new EmptyIcon(); 71 72 private int width = 1; 73 private int height = 1; 74 75 public EmptyIcon() { 76 } 77 public EmptyIcon(int width, int height) { 78 this.width = width; 79 this.height = height; 80 } 81 public void paintIcon(Component c, Graphics g, int x, int y) { 82 } 83 public int getIconWidth() { 84 return width; 85 } 86 public int getIconHeight() { 87 return height; 88 } 89 } | Popular Tags |