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 / java / awt / GridBagConstraints.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.6 KB  |  78 lines

  1. package java.awt;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class GridBagConstraints implements Cloneable, Serializable {
  6.    public static final int RELATIVE = -1;
  7.    public static final int REMAINDER = 0;
  8.    public static final int NONE = 0;
  9.    public static final int BOTH = 1;
  10.    public static final int HORIZONTAL = 2;
  11.    public static final int VERTICAL = 3;
  12.    public static final int CENTER = 10;
  13.    public static final int NORTH = 11;
  14.    public static final int NORTHEAST = 12;
  15.    public static final int EAST = 13;
  16.    public static final int SOUTHEAST = 14;
  17.    public static final int SOUTH = 15;
  18.    public static final int SOUTHWEST = 16;
  19.    public static final int WEST = 17;
  20.    public static final int NORTHWEST = 18;
  21.    public int gridx;
  22.    public int gridy;
  23.    public int gridwidth;
  24.    public int gridheight;
  25.    public double weightx;
  26.    public double weighty;
  27.    public int anchor;
  28.    public int fill;
  29.    public Insets insets;
  30.    public int ipadx;
  31.    public int ipady;
  32.    int tempX;
  33.    int tempY;
  34.    int tempWidth;
  35.    int tempHeight;
  36.    int minWidth;
  37.    int minHeight;
  38.    private static final long serialVersionUID = -1000070633030801713L;
  39.  
  40.    public GridBagConstraints() {
  41.       this.gridx = -1;
  42.       this.gridy = -1;
  43.       this.gridwidth = 1;
  44.       this.gridheight = 1;
  45.       this.weightx = (double)0.0F;
  46.       this.weighty = (double)0.0F;
  47.       this.anchor = 10;
  48.       this.fill = 0;
  49.       this.insets = new Insets(0, 0, 0, 0);
  50.       this.ipadx = 0;
  51.       this.ipady = 0;
  52.    }
  53.  
  54.    public GridBagConstraints(int var1, int var2, int var3, int var4, double var5, double var7, int var9, int var10, Insets var11, int var12, int var13) {
  55.       this.gridx = var1;
  56.       this.gridy = var2;
  57.       this.gridwidth = var3;
  58.       this.gridheight = var4;
  59.       this.fill = var10;
  60.       this.ipadx = var12;
  61.       this.ipady = var13;
  62.       this.insets = var11;
  63.       this.anchor = var9;
  64.       this.weightx = var5;
  65.       this.weighty = var7;
  66.    }
  67.  
  68.    public Object clone() {
  69.       try {
  70.          GridBagConstraints var1 = (GridBagConstraints)super.clone();
  71.          var1.insets = (Insets)this.insets.clone();
  72.          return var1;
  73.       } catch (CloneNotSupportedException var2) {
  74.          throw new InternalError();
  75.       }
  76.    }
  77. }
  78.