1 package java.awt; 2 3 12 public class GridBagLayoutInfo implements java.io.Serializable { 13 16 private static final long serialVersionUID = -4899416460737170217L; 17 18 int width, height; 19 int startx, starty; 20 int minWidth[]; 21 int minHeight[]; 22 double weightX[]; 23 double weightY[]; 24 boolean hasBaseline; 27 short baselineType[]; 32 int maxAscent[]; 33 int maxDescent[]; 34 35 42 GridBagLayoutInfo(int width, int height) { 43 this.width = width; 44 this.height = height; 45 } 46 47 51 boolean hasConstantDescent(int row) { 52 return ((baselineType[row] & (1 << Component.BaselineResizeBehavior. 53 CONSTANT_DESCENT.ordinal())) != 0); 54 } 55 56 59 boolean hasBaseline(int row) { 60 return (hasBaseline && baselineType[row] != 0); 61 } 62 } 63 | Popular Tags |