home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / border / EmptyBorder.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  917 b   |  51 lines

  1. package javax.swing.border;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Graphics;
  5. import java.awt.Insets;
  6. import java.io.Serializable;
  7.  
  8. public class EmptyBorder extends AbstractBorder implements Serializable {
  9.    protected int left;
  10.    protected int right;
  11.    protected int top;
  12.    protected int bottom;
  13.  
  14.    public EmptyBorder(int var1, int var2, int var3, int var4) {
  15.       this.top = var1;
  16.       this.right = var4;
  17.       this.bottom = var3;
  18.       this.left = var2;
  19.    }
  20.  
  21.    public EmptyBorder(Insets var1) {
  22.       this.top = var1.top;
  23.       this.right = var1.right;
  24.       this.bottom = var1.bottom;
  25.       this.left = var1.left;
  26.    }
  27.  
  28.    public void paintBorder(Component var1, Graphics var2, int var3, int var4, int var5, int var6) {
  29.    }
  30.  
  31.    public Insets getBorderInsets(Component var1) {
  32.       return this.getBorderInsets();
  33.    }
  34.  
  35.    public Insets getBorderInsets(Component var1, Insets var2) {
  36.       var2.left = this.left;
  37.       var2.top = this.top;
  38.       var2.right = this.right;
  39.       var2.bottom = this.bottom;
  40.       return var2;
  41.    }
  42.  
  43.    public Insets getBorderInsets() {
  44.       return new Insets(this.top, this.left, this.bottom, this.right);
  45.    }
  46.  
  47.    public boolean isBorderOpaque() {
  48.       return false;
  49.    }
  50. }
  51.