4186dc4dce1b2b591d4764b3e2d0d302955ffd54
[jalviewjs.git] / site / swingjs / j2s / java / awt / GridBagLayoutInfo.js
1 Clazz.declarePackage ("java.awt");\r
2 Clazz.load (null, "java.awt.GridBagLayoutInfo", ["java.awt.Component"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.width = 0;\r
5 this.height = 0;\r
6 this.startx = 0;\r
7 this.starty = 0;\r
8 this.minWidth = null;\r
9 this.minHeight = null;\r
10 this.weightX = null;\r
11 this.weightY = null;\r
12 this.$hasBaseline = false;\r
13 this.baselineType = null;\r
14 this.maxAscent = null;\r
15 this.maxDescent = null;\r
16 Clazz.instantialize (this, arguments);\r
17 }, java.awt, "GridBagLayoutInfo");\r
18 Clazz.makeConstructor (c$, \r
19 function (width, height) {\r
20 this.width = width;\r
21 this.height = height;\r
22 }, "~N,~N");\r
23 Clazz.defineMethod (c$, "hasConstantDescent", \r
24 function (row) {\r
25 return ((this.baselineType[row] & (1 << java.awt.Component.BaselineResizeBehavior.CONSTANT_DESCENT.ordinal ())) != 0);\r
26 }, "~N");\r
27 Clazz.defineMethod (c$, "hasBaseline", \r
28 function (row) {\r
29 return (this.$hasBaseline && this.baselineType[row] != 0);\r
30 }, "~N");\r
31 });\r