home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / plaf / metal / MetalFileChooserUI$IndentIcon.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  909 b   |  31 lines

  1. package javax.swing.plaf.metal;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Graphics;
  5. import javax.swing.Icon;
  6.  
  7. class MetalFileChooserUI$IndentIcon implements Icon {
  8.    // $FF: synthetic field
  9.    private final MetalFileChooserUI this$0;
  10.    Icon icon;
  11.    int depth;
  12.  
  13.    MetalFileChooserUI$IndentIcon(MetalFileChooserUI var1) {
  14.       this.this$0 = var1;
  15.       this.icon = null;
  16.       this.depth = 0;
  17.    }
  18.  
  19.    public int getIconHeight() {
  20.       return this.icon.getIconHeight();
  21.    }
  22.  
  23.    public int getIconWidth() {
  24.       return this.icon.getIconWidth() + this.depth * 10;
  25.    }
  26.  
  27.    public void paintIcon(Component var1, Graphics var2, int var3, int var4) {
  28.       this.icon.paintIcon(var1, var2, var3 + this.depth * 10, var4);
  29.    }
  30. }
  31.