Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / BorderLayout.js
index b29b97e..c188aac 100644 (file)
-Clazz.declarePackage ("java.awt");\r
-Clazz.load (["java.awt.LayoutManager2"], "java.awt.BorderLayout", ["java.lang.IllegalArgumentException", "java.awt.Dimension"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.hgap = 0;\r
-this.vgap = 0;\r
-this.north = null;\r
-this.west = null;\r
-this.east = null;\r
-this.south = null;\r
-this.center = null;\r
-this.firstLine = null;\r
-this.lastLine = null;\r
-this.firstItem = null;\r
-this.lastItem = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt, "BorderLayout", null, [java.awt.LayoutManager2, java.io.Serializable]);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct (0, 0);\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (hgap, vgap) {\r
-this.hgap = hgap;\r
-this.vgap = vgap;\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "getHgap", \r
-function () {\r
-return this.hgap;\r
-});\r
-Clazz.defineMethod (c$, "setHgap", \r
-function (hgap) {\r
-this.hgap = hgap;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getVgap", \r
-function () {\r
-return this.vgap;\r
-});\r
-Clazz.defineMethod (c$, "setVgap", \r
-function (vgap) {\r
-this.vgap = vgap;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "addLayoutComponent", \r
-function (comp, constraints) {\r
-{\r
-if ((constraints == null) || (Clazz.instanceOf (constraints, String))) {\r
-this.addLayoutComponent (constraints, comp);\r
-} else {\r
-throw  new IllegalArgumentException ("cannot add to layout: constraint must be a string (or null)");\r
-}}}, "java.awt.Component,~O");\r
-Clazz.defineMethod (c$, "addLayoutComponent", \r
-function (name, comp) {\r
-{\r
-if (name == null) {\r
-name = "Center";\r
-}System.out.println ("BorderLayout adding " + name + " " + comp);\r
-if ("Center".equals (name)) {\r
-this.center = comp;\r
-} else if ("North".equals (name)) {\r
-this.north = comp;\r
-} else if ("South".equals (name)) {\r
-this.south = comp;\r
-} else if ("East".equals (name)) {\r
-this.east = comp;\r
-} else if ("West".equals (name)) {\r
-this.west = comp;\r
-} else if ("First".equals (name)) {\r
-this.firstLine = comp;\r
-} else if ("Last".equals (name)) {\r
-this.lastLine = comp;\r
-} else if ("Before".equals (name)) {\r
-this.firstItem = comp;\r
-} else if ("After".equals (name)) {\r
-this.lastItem = comp;\r
-} else {\r
-throw  new IllegalArgumentException ("cannot add to layout: unknown constraint: " + name);\r
-}}}, "~S,java.awt.Component");\r
-Clazz.overrideMethod (c$, "removeLayoutComponent", \r
-function (comp) {\r
-{\r
-if (comp === this.center) {\r
-this.center = null;\r
-} else if (comp === this.north) {\r
-this.north = null;\r
-} else if (comp === this.south) {\r
-this.south = null;\r
-} else if (comp === this.east) {\r
-this.east = null;\r
-} else if (comp === this.west) {\r
-this.west = null;\r
-}if (comp === this.firstLine) {\r
-this.firstLine = null;\r
-} else if (comp === this.lastLine) {\r
-this.lastLine = null;\r
-} else if (comp === this.firstItem) {\r
-this.firstItem = null;\r
-} else if (comp === this.lastItem) {\r
-this.lastItem = null;\r
-}}}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getLayoutComponent", \r
-function (constraints) {\r
-if ("Center".equals (constraints)) {\r
-return this.center;\r
-} else if ("North".equals (constraints)) {\r
-return this.north;\r
-} else if ("South".equals (constraints)) {\r
-return this.south;\r
-} else if ("West".equals (constraints)) {\r
-return this.west;\r
-} else if ("East".equals (constraints)) {\r
-return this.east;\r
-} else if ("First".equals (constraints)) {\r
-return this.firstLine;\r
-} else if ("Last".equals (constraints)) {\r
-return this.lastLine;\r
-} else if ("Before".equals (constraints)) {\r
-return this.firstItem;\r
-} else if ("After".equals (constraints)) {\r
-return this.lastItem;\r
-} else {\r
-throw  new IllegalArgumentException ("cannot get component: unknown constraint: " + constraints);\r
-}}, "~O");\r
-Clazz.defineMethod (c$, "getLayoutComponent", \r
-function (target, constraints) {\r
-var ltr = target.getComponentOrientation ().isLeftToRight ();\r
-var result = null;\r
-if ("North".equals (constraints)) {\r
-result = (this.firstLine != null) ? this.firstLine : this.north;\r
-} else if ("South".equals (constraints)) {\r
-result = (this.lastLine != null) ? this.lastLine : this.south;\r
-} else if ("West".equals (constraints)) {\r
-result = ltr ? this.firstItem : this.lastItem;\r
-if (result == null) {\r
-result = this.west;\r
-}} else if ("East".equals (constraints)) {\r
-result = ltr ? this.lastItem : this.firstItem;\r
-if (result == null) {\r
-result = this.east;\r
-}} else if ("Center".equals (constraints)) {\r
-result = this.center;\r
-} else {\r
-throw  new IllegalArgumentException ("cannot get component: invalid constraint: " + constraints);\r
-}return result;\r
-}, "java.awt.Container,~O");\r
-Clazz.defineMethod (c$, "getConstraints", \r
-function (comp) {\r
-if (comp == null) {\r
-return null;\r
-}if (comp === this.center) {\r
-return "Center";\r
-} else if (comp === this.north) {\r
-return "North";\r
-} else if (comp === this.south) {\r
-return "South";\r
-} else if (comp === this.west) {\r
-return "West";\r
-} else if (comp === this.east) {\r
-return "East";\r
-} else if (comp === this.firstLine) {\r
-return "First";\r
-} else if (comp === this.lastLine) {\r
-return "Last";\r
-} else if (comp === this.firstItem) {\r
-return "Before";\r
-} else if (comp === this.lastItem) {\r
-return "After";\r
-}return null;\r
-}, "java.awt.Component");\r
-Clazz.overrideMethod (c$, "minimumLayoutSize", \r
-function (target) {\r
-{\r
-var dim =  new java.awt.Dimension (0, 0);\r
-var ltr = target.getComponentOrientation ().isLeftToRight ();\r
-var c = null;\r
-if ((c = this.getChild ("East", ltr)) != null) {\r
-var d = c.getMinimumSize ();\r
-dim.width += d.width + this.hgap;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("West", ltr)) != null) {\r
-var d = c.getMinimumSize ();\r
-dim.width += d.width + this.hgap;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("Center", ltr)) != null) {\r
-var d = c.getMinimumSize ();\r
-dim.width += d.width;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("North", ltr)) != null) {\r
-var d = c.getMinimumSize ();\r
-dim.width = Math.max (d.width, dim.width);\r
-dim.height += d.height + this.vgap;\r
-}if ((c = this.getChild ("South", ltr)) != null) {\r
-var d = c.getMinimumSize ();\r
-dim.width = Math.max (d.width, dim.width);\r
-dim.height += d.height + this.vgap;\r
-}var insets = target.getInsets ();\r
-dim.width += insets.left + insets.right;\r
-dim.height += insets.top + insets.bottom;\r
-return dim;\r
-}}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "preferredLayoutSize", \r
-function (target) {\r
-{\r
-var dim =  new java.awt.Dimension (0, 0);\r
-var ltr = target.getComponentOrientation ().isLeftToRight ();\r
-var c = null;\r
-if ((c = this.getChild ("East", ltr)) != null) {\r
-var d = c.getPreferredSize ();\r
-dim.width += d.width + this.hgap;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("West", ltr)) != null) {\r
-var d = c.getPreferredSize ();\r
-dim.width += d.width + this.hgap;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("Center", ltr)) != null) {\r
-var d = c.getPreferredSize ();\r
-dim.width += d.width;\r
-dim.height = Math.max (d.height, dim.height);\r
-}if ((c = this.getChild ("North", ltr)) != null) {\r
-var d = c.getPreferredSize ();\r
-dim.width = Math.max (d.width, dim.width);\r
-dim.height += d.height + this.vgap;\r
-}if ((c = this.getChild ("South", ltr)) != null) {\r
-var d = c.getPreferredSize ();\r
-dim.width = Math.max (d.width, dim.width);\r
-dim.height += d.height + this.vgap;\r
-}var insets = target.getInsets ();\r
-dim.width += insets.left + insets.right;\r
-dim.height += insets.top + insets.bottom;\r
-return dim;\r
-}}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "maximumLayoutSize", \r
-function (target) {\r
-return  new java.awt.Dimension (2147483647, 2147483647);\r
-}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "getLayoutAlignmentX", \r
-function (parent) {\r
-return 0.5;\r
-}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "getLayoutAlignmentY", \r
-function (parent) {\r
-return 0.5;\r
-}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "invalidateLayout", \r
-function (target) {\r
-}, "java.awt.Container");\r
-Clazz.overrideMethod (c$, "layoutContainer", \r
-function (target) {\r
-System.out.println ("BorderLayout laying out " + target);\r
-{\r
-var insets = target.getInsets ();\r
-var top = insets.top;\r
-var bottom = target.height - insets.bottom;\r
-var left = insets.left;\r
-var right = target.width - insets.right;\r
-var ltr = target.getComponentOrientation ().isLeftToRight ();\r
-var c = null;\r
-if ((c = this.getChild ("North", ltr)) != null) {\r
-c.setSize (right - left, c.height);\r
-var d = c.getPreferredSize ();\r
-c.setBounds (left, top, right - left, d.height);\r
-top += d.height + this.vgap;\r
-}if ((c = this.getChild ("South", ltr)) != null) {\r
-c.setSize (right - left, c.height);\r
-var d = c.getPreferredSize ();\r
-c.setBounds (left, bottom - d.height, right - left, d.height);\r
-bottom -= d.height + this.vgap;\r
-}if ((c = this.getChild ("East", ltr)) != null) {\r
-c.setSize (c.width, bottom - top);\r
-var d = c.getPreferredSize ();\r
-c.setBounds (right - d.width, top, d.width, bottom - top);\r
-right -= d.width + this.hgap;\r
-}if ((c = this.getChild ("West", ltr)) != null) {\r
-c.setSize (c.width, bottom - top);\r
-var d = c.getPreferredSize ();\r
-c.setBounds (left, top, d.width, bottom - top);\r
-left += d.width + this.hgap;\r
-}if ((c = this.getChild ("Center", ltr)) != null) {\r
-c.setBounds (left, top, right - left, bottom - top);\r
-}}}, "java.awt.Container");\r
-Clazz.defineMethod (c$, "getChild", \r
- function (key, ltr) {\r
-var result = null;\r
-if (key === "North") {\r
-result = (this.firstLine != null) ? this.firstLine : this.north;\r
-} else if (key === "South") {\r
-result = (this.lastLine != null) ? this.lastLine : this.south;\r
-} else if (key === "West") {\r
-result = ltr ? this.firstItem : this.lastItem;\r
-if (result == null) {\r
-result = this.west;\r
-}} else if (key === "East") {\r
-result = ltr ? this.lastItem : this.firstItem;\r
-if (result == null) {\r
-result = this.east;\r
-}} else if (key === "Center") {\r
-result = this.center;\r
-}if (result != null && !result.visible) {\r
-result = null;\r
-}return result;\r
-}, "~S,~B");\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.getClass ().getName () + "[hgap=" + this.hgap + ",vgap=" + this.vgap + "]";\r
-});\r
-Clazz.defineStatics (c$,\r
-"NORTH", "North",\r
-"SOUTH", "South",\r
-"EAST", "East",\r
-"WEST", "West",\r
-"CENTER", "Center",\r
-"BEFORE_FIRST_LINE", "First",\r
-"AFTER_LAST_LINE", "Last",\r
-"BEFORE_LINE_BEGINS", "Before",\r
-"AFTER_LINE_ENDS", "After");\r
-c$.PAGE_START = c$.prototype.PAGE_START = "First";\r
-c$.PAGE_END = c$.prototype.PAGE_END = "Last";\r
-c$.LINE_START = c$.prototype.LINE_START = "Before";\r
-c$.LINE_END = c$.prototype.LINE_END = "After";\r
-});\r
+Clazz.declarePackage ("java.awt");
+Clazz.load (["java.awt.LayoutManager2"], "java.awt.BorderLayout", ["java.lang.IllegalArgumentException", "java.awt.Dimension"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.hgap = 0;
+this.vgap = 0;
+this.north = null;
+this.west = null;
+this.east = null;
+this.south = null;
+this.center = null;
+this.firstLine = null;
+this.lastLine = null;
+this.firstItem = null;
+this.lastItem = null;
+Clazz.instantialize (this, arguments);
+}, java.awt, "BorderLayout", null, [java.awt.LayoutManager2, java.io.Serializable]);
+Clazz.makeConstructor (c$, 
+function () {
+this.construct (0, 0);
+});
+Clazz.makeConstructor (c$, 
+function (hgap, vgap) {
+this.hgap = hgap;
+this.vgap = vgap;
+}, "~N,~N");
+Clazz.defineMethod (c$, "getHgap", 
+function () {
+return this.hgap;
+});
+Clazz.defineMethod (c$, "setHgap", 
+function (hgap) {
+this.hgap = hgap;
+}, "~N");
+Clazz.defineMethod (c$, "getVgap", 
+function () {
+return this.vgap;
+});
+Clazz.defineMethod (c$, "setVgap", 
+function (vgap) {
+this.vgap = vgap;
+}, "~N");
+Clazz.defineMethod (c$, "addLayoutComponent", 
+function (comp, constraints) {
+{
+if ((constraints == null) || (Clazz.instanceOf (constraints, String))) {
+this.addLayoutComponent (constraints, comp);
+} else {
+throw  new IllegalArgumentException ("cannot add to layout: constraint must be a string (or null)");
+}}}, "java.awt.Component,~O");
+Clazz.defineMethod (c$, "addLayoutComponent", 
+function (name, comp) {
+{
+if (name == null) {
+name = "Center";
+}System.out.println ("BorderLayout adding " + name + " " + comp);
+if ("Center".equals (name)) {
+this.center = comp;
+} else if ("North".equals (name)) {
+this.north = comp;
+} else if ("South".equals (name)) {
+this.south = comp;
+} else if ("East".equals (name)) {
+this.east = comp;
+} else if ("West".equals (name)) {
+this.west = comp;
+} else if ("First".equals (name)) {
+this.firstLine = comp;
+} else if ("Last".equals (name)) {
+this.lastLine = comp;
+} else if ("Before".equals (name)) {
+this.firstItem = comp;
+} else if ("After".equals (name)) {
+this.lastItem = comp;
+} else {
+throw  new IllegalArgumentException ("cannot add to layout: unknown constraint: " + name);
+}}}, "~S,java.awt.Component");
+Clazz.overrideMethod (c$, "removeLayoutComponent", 
+function (comp) {
+{
+if (comp === this.center) {
+this.center = null;
+} else if (comp === this.north) {
+this.north = null;
+} else if (comp === this.south) {
+this.south = null;
+} else if (comp === this.east) {
+this.east = null;
+} else if (comp === this.west) {
+this.west = null;
+}if (comp === this.firstLine) {
+this.firstLine = null;
+} else if (comp === this.lastLine) {
+this.lastLine = null;
+} else if (comp === this.firstItem) {
+this.firstItem = null;
+} else if (comp === this.lastItem) {
+this.lastItem = null;
+}}}, "java.awt.Component");
+Clazz.defineMethod (c$, "getLayoutComponent", 
+function (constraints) {
+if ("Center".equals (constraints)) {
+return this.center;
+} else if ("North".equals (constraints)) {
+return this.north;
+} else if ("South".equals (constraints)) {
+return this.south;
+} else if ("West".equals (constraints)) {
+return this.west;
+} else if ("East".equals (constraints)) {
+return this.east;
+} else if ("First".equals (constraints)) {
+return this.firstLine;
+} else if ("Last".equals (constraints)) {
+return this.lastLine;
+} else if ("Before".equals (constraints)) {
+return this.firstItem;
+} else if ("After".equals (constraints)) {
+return this.lastItem;
+} else {
+throw  new IllegalArgumentException ("cannot get component: unknown constraint: " + constraints);
+}}, "~O");
+Clazz.defineMethod (c$, "getLayoutComponent", 
+function (target, constraints) {
+var ltr = target.getComponentOrientation ().isLeftToRight ();
+var result = null;
+if ("North".equals (constraints)) {
+result = (this.firstLine != null) ? this.firstLine : this.north;
+} else if ("South".equals (constraints)) {
+result = (this.lastLine != null) ? this.lastLine : this.south;
+} else if ("West".equals (constraints)) {
+result = ltr ? this.firstItem : this.lastItem;
+if (result == null) {
+result = this.west;
+}} else if ("East".equals (constraints)) {
+result = ltr ? this.lastItem : this.firstItem;
+if (result == null) {
+result = this.east;
+}} else if ("Center".equals (constraints)) {
+result = this.center;
+} else {
+throw  new IllegalArgumentException ("cannot get component: invalid constraint: " + constraints);
+}return result;
+}, "java.awt.Container,~O");
+Clazz.defineMethod (c$, "getConstraints", 
+function (comp) {
+if (comp == null) {
+return null;
+}if (comp === this.center) {
+return "Center";
+} else if (comp === this.north) {
+return "North";
+} else if (comp === this.south) {
+return "South";
+} else if (comp === this.west) {
+return "West";
+} else if (comp === this.east) {
+return "East";
+} else if (comp === this.firstLine) {
+return "First";
+} else if (comp === this.lastLine) {
+return "Last";
+} else if (comp === this.firstItem) {
+return "Before";
+} else if (comp === this.lastItem) {
+return "After";
+}return null;
+}, "java.awt.Component");
+Clazz.overrideMethod (c$, "minimumLayoutSize", 
+function (target) {
+{
+var dim =  new java.awt.Dimension (0, 0);
+var ltr = target.getComponentOrientation ().isLeftToRight ();
+var c = null;
+if ((c = this.getChild ("East", ltr)) != null) {
+var d = c.getMinimumSize ();
+dim.width += d.width + this.hgap;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("West", ltr)) != null) {
+var d = c.getMinimumSize ();
+dim.width += d.width + this.hgap;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("Center", ltr)) != null) {
+var d = c.getMinimumSize ();
+dim.width += d.width;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("North", ltr)) != null) {
+var d = c.getMinimumSize ();
+dim.width = Math.max (d.width, dim.width);
+dim.height += d.height + this.vgap;
+}if ((c = this.getChild ("South", ltr)) != null) {
+var d = c.getMinimumSize ();
+dim.width = Math.max (d.width, dim.width);
+dim.height += d.height + this.vgap;
+}var insets = target.getInsets ();
+dim.width += insets.left + insets.right;
+dim.height += insets.top + insets.bottom;
+return dim;
+}}, "java.awt.Container");
+Clazz.overrideMethod (c$, "preferredLayoutSize", 
+function (target) {
+{
+var dim =  new java.awt.Dimension (0, 0);
+var ltr = target.getComponentOrientation ().isLeftToRight ();
+var c = null;
+if ((c = this.getChild ("East", ltr)) != null) {
+var d = c.getPreferredSize ();
+dim.width += d.width + this.hgap;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("West", ltr)) != null) {
+var d = c.getPreferredSize ();
+dim.width += d.width + this.hgap;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("Center", ltr)) != null) {
+var d = c.getPreferredSize ();
+dim.width += d.width;
+dim.height = Math.max (d.height, dim.height);
+}if ((c = this.getChild ("North", ltr)) != null) {
+var d = c.getPreferredSize ();
+dim.width = Math.max (d.width, dim.width);
+dim.height += d.height + this.vgap;
+}if ((c = this.getChild ("South", ltr)) != null) {
+var d = c.getPreferredSize ();
+dim.width = Math.max (d.width, dim.width);
+dim.height += d.height + this.vgap;
+}var insets = target.getInsets ();
+dim.width += insets.left + insets.right;
+dim.height += insets.top + insets.bottom;
+return dim;
+}}, "java.awt.Container");
+Clazz.overrideMethod (c$, "maximumLayoutSize", 
+function (target) {
+return  new java.awt.Dimension (2147483647, 2147483647);
+}, "java.awt.Container");
+Clazz.overrideMethod (c$, "getLayoutAlignmentX", 
+function (parent) {
+return 0.5;
+}, "java.awt.Container");
+Clazz.overrideMethod (c$, "getLayoutAlignmentY", 
+function (parent) {
+return 0.5;
+}, "java.awt.Container");
+Clazz.overrideMethod (c$, "invalidateLayout", 
+function (target) {
+}, "java.awt.Container");
+Clazz.overrideMethod (c$, "layoutContainer", 
+function (target) {
+System.out.println ("BorderLayout laying out " + target);
+{
+var insets = target.getInsets ();
+var top = insets.top;
+var bottom = target.height - insets.bottom;
+var left = insets.left;
+var right = target.width - insets.right;
+var ltr = target.getComponentOrientation ().isLeftToRight ();
+var c = null;
+if ((c = this.getChild ("North", ltr)) != null) {
+c.setSize (right - left, c.height);
+var d = c.getPreferredSize ();
+c.setBounds (left, top, right - left, d.height);
+top += d.height + this.vgap;
+}if ((c = this.getChild ("South", ltr)) != null) {
+c.setSize (right - left, c.height);
+var d = c.getPreferredSize ();
+c.setBounds (left, bottom - d.height, right - left, d.height);
+bottom -= d.height + this.vgap;
+}if ((c = this.getChild ("East", ltr)) != null) {
+c.setSize (c.width, bottom - top);
+var d = c.getPreferredSize ();
+c.setBounds (right - d.width, top, d.width, bottom - top);
+right -= d.width + this.hgap;
+}if ((c = this.getChild ("West", ltr)) != null) {
+c.setSize (c.width, bottom - top);
+var d = c.getPreferredSize ();
+c.setBounds (left, top, d.width, bottom - top);
+left += d.width + this.hgap;
+}if ((c = this.getChild ("Center", ltr)) != null) {
+c.setBounds (left, top, right - left, bottom - top);
+}}}, "java.awt.Container");
+Clazz.defineMethod (c$, "getChild", 
+ function (key, ltr) {
+var result = null;
+if (key === "North") {
+result = (this.firstLine != null) ? this.firstLine : this.north;
+} else if (key === "South") {
+result = (this.lastLine != null) ? this.lastLine : this.south;
+} else if (key === "West") {
+result = ltr ? this.firstItem : this.lastItem;
+if (result == null) {
+result = this.west;
+}} else if (key === "East") {
+result = ltr ? this.lastItem : this.firstItem;
+if (result == null) {
+result = this.east;
+}} else if (key === "Center") {
+result = this.center;
+}if (result != null && !result.visible) {
+result = null;
+}return result;
+}, "~S,~B");
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return this.getClass ().getName () + "[hgap=" + this.hgap + ",vgap=" + this.vgap + "]";
+});
+Clazz.defineStatics (c$,
+"NORTH", "North",
+"SOUTH", "South",
+"EAST", "East",
+"WEST", "West",
+"CENTER", "Center",
+"BEFORE_FIRST_LINE", "First",
+"AFTER_LAST_LINE", "Last",
+"BEFORE_LINE_BEGINS", "Before",
+"AFTER_LINE_ENDS", "After");
+c$.PAGE_START = c$.prototype.PAGE_START = "First";
+c$.PAGE_END = c$.prototype.PAGE_END = "Last";
+c$.LINE_START = c$.prototype.LINE_START = "Before";
+c$.LINE_END = c$.prototype.LINE_END = "After";
+});