home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.Icon;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Graphics;
-
- class Stylepad$ColoredSquare implements Icon {
- // $FF: synthetic field
- private final Stylepad this$0;
- Color color;
-
- public Stylepad$ColoredSquare(Stylepad var1, Color var2) {
- this.this$0 = var1;
- this.this$0 = var1;
- this.color = var2;
- }
-
- public void paintIcon(Component var1, Graphics var2, int var3, int var4) {
- Color var5 = var2.getColor();
- var2.setColor(this.color);
- var2.fill3DRect(var3, var4, this.getIconWidth(), this.getIconHeight(), true);
- var2.setColor(var5);
- }
-
- public int getIconWidth() {
- return 12;
- }
-
- public int getIconHeight() {
- return 12;
- }
- }
-