X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fawt%2FGridBagConstraints.js;fp=site%2Fj2s%2Fjava%2Fawt%2FGridBagConstraints.js;h=92dd28feda43ef6cdee888ad9cff15292b72843b;hp=6151661b820c5e43b57deaeb4c88590b35a640d7;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/java/awt/GridBagConstraints.js b/site/j2s/java/awt/GridBagConstraints.js index 6151661..92dd28f 100644 --- a/site/j2s/java/awt/GridBagConstraints.js +++ b/site/j2s/java/awt/GridBagConstraints.js @@ -1,111 +1,111 @@ -Clazz.declarePackage ("java.awt"); -Clazz.load (null, "java.awt.GridBagConstraints", ["java.lang.InternalError", "java.awt.Insets"], function () { -c$ = Clazz.decorateAsClass (function () { -this.gridx = 0; -this.gridy = 0; -this.gridwidth = 0; -this.gridheight = 0; -this.weightx = 0; -this.weighty = 0; -this.anchor = 0; -this.fill = 0; -this.insets = null; -this.ipadx = 0; -this.ipady = 0; -this.tempX = 0; -this.tempY = 0; -this.tempWidth = 0; -this.tempHeight = 0; -this.minWidth = 0; -this.minHeight = 0; -this.ascent = 0; -this.descent = 0; -this.baselineResizeBehavior = null; -this.centerPadding = 0; -this.centerOffset = 0; -Clazz.instantialize (this, arguments); -}, java.awt, "GridBagConstraints", null, Cloneable); -Clazz.makeConstructor (c$, -function () { -this.gridx = -1; -this.gridy = -1; -this.gridwidth = 1; -this.gridheight = 1; -this.weightx = 0; -this.weighty = 0; -this.anchor = 10; -this.fill = 0; -this.insets = new java.awt.Insets (0, 0, 0, 0); -this.ipadx = 0; -this.ipady = 0; -}); -Clazz.makeConstructor (c$, -function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) { -this.gridx = gridx; -this.gridy = gridy; -this.gridwidth = gridwidth; -this.gridheight = gridheight; -this.fill = fill; -this.ipadx = ipadx; -this.ipady = ipady; -this.insets = insets; -this.anchor = anchor; -this.weightx = weightx; -this.weighty = weighty; -}, "~N,~N,~N,~N,~N,~N,~N,~N,java.awt.Insets,~N,~N"); -Clazz.overrideMethod (c$, "toString", -function () { -return "[" + this.gridx + "," + this.gridy + "," + this.gridwidth + "," + this.gridheight + "," + this.fill + "," + this.ipadx + "," + this.ipady + "," + this.insets + "," + this.anchor + "," + this.weightx + "," + this.weighty + "]"; -}); -Clazz.defineMethod (c$, "clone", -function () { -try { -var c = Clazz.superCall (this, java.awt.GridBagConstraints, "clone", []); -c.insets = this.insets.clone (); -return c; -} catch (e) { -if (Clazz.exceptionOf (e, CloneNotSupportedException)) { -throw new InternalError (); -} else { -throw e; -} -} -}); -Clazz.defineMethod (c$, "isVerticallyResizable", -function () { -return (this.fill == 1 || this.fill == 3); -}); -Clazz.defineStatics (c$, -"RELATIVE", -1, -"REMAINDER", 0, -"NONE", 0, -"BOTH", 1, -"HORIZONTAL", 2, -"VERTICAL", 3, -"CENTER", 10, -"NORTH", 11, -"NORTHEAST", 12, -"EAST", 13, -"SOUTHEAST", 14, -"SOUTH", 15, -"SOUTHWEST", 16, -"WEST", 17, -"NORTHWEST", 18, -"PAGE_START", 19, -"PAGE_END", 20, -"LINE_START", 21, -"LINE_END", 22, -"FIRST_LINE_START", 23, -"FIRST_LINE_END", 24, -"LAST_LINE_START", 25, -"LAST_LINE_END", 26, -"BASELINE", 0x100, -"BASELINE_LEADING", 0x200, -"BASELINE_TRAILING", 0x300, -"ABOVE_BASELINE", 0x400, -"ABOVE_BASELINE_LEADING", 0x500, -"ABOVE_BASELINE_TRAILING", 0x600, -"BELOW_BASELINE", 0x700, -"BELOW_BASELINE_LEADING", 0x800, -"BELOW_BASELINE_TRAILING", 0x900); -}); +Clazz.declarePackage ("java.awt"); +Clazz.load (null, "java.awt.GridBagConstraints", ["java.lang.InternalError", "java.awt.Insets"], function () { +c$ = Clazz.decorateAsClass (function () { +this.gridx = 0; +this.gridy = 0; +this.gridwidth = 0; +this.gridheight = 0; +this.weightx = 0; +this.weighty = 0; +this.anchor = 0; +this.fill = 0; +this.insets = null; +this.ipadx = 0; +this.ipady = 0; +this.tempX = 0; +this.tempY = 0; +this.tempWidth = 0; +this.tempHeight = 0; +this.minWidth = 0; +this.minHeight = 0; +this.ascent = 0; +this.descent = 0; +this.baselineResizeBehavior = null; +this.centerPadding = 0; +this.centerOffset = 0; +Clazz.instantialize (this, arguments); +}, java.awt, "GridBagConstraints", null, Cloneable); +Clazz.makeConstructor (c$, +function () { +this.gridx = -1; +this.gridy = -1; +this.gridwidth = 1; +this.gridheight = 1; +this.weightx = 0; +this.weighty = 0; +this.anchor = 10; +this.fill = 0; +this.insets = new java.awt.Insets (0, 0, 0, 0); +this.ipadx = 0; +this.ipady = 0; +}); +Clazz.makeConstructor (c$, +function (gridx, gridy, gridwidth, gridheight, weightx, weighty, anchor, fill, insets, ipadx, ipady) { +this.gridx = gridx; +this.gridy = gridy; +this.gridwidth = gridwidth; +this.gridheight = gridheight; +this.fill = fill; +this.ipadx = ipadx; +this.ipady = ipady; +this.insets = insets; +this.anchor = anchor; +this.weightx = weightx; +this.weighty = weighty; +}, "~N,~N,~N,~N,~N,~N,~N,~N,java.awt.Insets,~N,~N"); +Clazz.overrideMethod (c$, "toString", +function () { +return "[" + this.gridx + "," + this.gridy + "," + this.gridwidth + "," + this.gridheight + "," + this.fill + "," + this.ipadx + "," + this.ipady + "," + this.insets + "," + this.anchor + "," + this.weightx + "," + this.weighty + "]"; +}); +Clazz.defineMethod (c$, "clone", +function () { +try { +var c = Clazz.superCall (this, java.awt.GridBagConstraints, "clone", []); +c.insets = this.insets.clone (); +return c; +} catch (e) { +if (Clazz.exceptionOf (e, CloneNotSupportedException)) { +throw new InternalError (); +} else { +throw e; +} +} +}); +Clazz.defineMethod (c$, "isVerticallyResizable", +function () { +return (this.fill == 1 || this.fill == 3); +}); +Clazz.defineStatics (c$, +"RELATIVE", -1, +"REMAINDER", 0, +"NONE", 0, +"BOTH", 1, +"HORIZONTAL", 2, +"VERTICAL", 3, +"CENTER", 10, +"NORTH", 11, +"NORTHEAST", 12, +"EAST", 13, +"SOUTHEAST", 14, +"SOUTH", 15, +"SOUTHWEST", 16, +"WEST", 17, +"NORTHWEST", 18, +"PAGE_START", 19, +"PAGE_END", 20, +"LINE_START", 21, +"LINE_END", 22, +"FIRST_LINE_START", 23, +"FIRST_LINE_END", 24, +"LAST_LINE_START", 25, +"LAST_LINE_END", 26, +"BASELINE", 0x100, +"BASELINE_LEADING", 0x200, +"BASELINE_TRAILING", 0x300, +"ABOVE_BASELINE", 0x400, +"ABOVE_BASELINE_LEADING", 0x500, +"ABOVE_BASELINE_TRAILING", 0x600, +"BELOW_BASELINE", 0x700, +"BELOW_BASELINE_LEADING", 0x800, +"BELOW_BASELINE_TRAILING", 0x900); +});