home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / border / EmptyBorder.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  933 b   |  39 lines

  1. package com.sun.java.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 new Insets(this.top, this.left, this.bottom, this.right);
  33.    }
  34.  
  35.    public boolean isBorderOpaque() {
  36.       return false;
  37.    }
  38. }
  39.