Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / src / javajs / swing / GridBagConstraints.java
index dfbe4eb..578edc3 100644 (file)
@@ -1,47 +1,47 @@
-package javajs.swing;\r
-\r
-public class GridBagConstraints {\r
-\r
-       public static final int NONE = 0;\r
-       public static final int CENTER = 10;\r
-       public static final int WEST = 17;\r
-       public static final int EAST = 13;\r
-\r
-       public int gridx;\r
-       public int gridy;\r
-       public int gridwidth;\r
-       public int gridheight;\r
-       double weightx;\r
-       double weighty;\r
-       public int anchor;\r
-       public int fill;\r
-       Insets insets;\r
-       public int ipadx;\r
-       public int ipady;\r
-       \r
-       public GridBagConstraints(int gridx, int gridy, int gridwidth,\r
-                       int gridheight, double weightx, double weighty, int anchor, int fill,\r
-                       Insets insets, int ipadx, int ipady) {\r
-               this.gridx = gridx;\r
-               this.gridy = gridy;\r
-               this.gridwidth = gridwidth;\r
-               this.gridheight = gridheight;\r
-               this.weightx = weightx;\r
-               this.weighty = weighty;\r
-               this.anchor = anchor;\r
-               this.fill = fill;\r
-               if (insets == null)\r
-                       insets = new Insets(0, 0, 0, 0);\r
-               this.insets = insets;\r
-               this.ipadx = ipadx;\r
-               this.ipady = ipady;\r
-       }\r
-\r
-       String getStyle(boolean margins) {\r
-               return "style='" + (margins ? \r
-                               "margin:" + insets.top + "px " + (ipady + insets.right) + "px "\r
-                               + insets.bottom + "px " + (ipadx + insets.left) + "px;"\r
-                               : "text-align:" + (anchor == EAST ? "right" : anchor == WEST? "left" : "center")) + "'";\r
-       }\r
-\r
-}\r
+package javajs.swing;
+
+public class GridBagConstraints {
+
+       public static final int NONE = 0;
+       public static final int CENTER = 10;
+       public static final int WEST = 17;
+       public static final int EAST = 13;
+
+       public int gridx;
+       public int gridy;
+       public int gridwidth;
+       public int gridheight;
+       double weightx;
+       double weighty;
+       public int anchor;
+       public int fill;
+       Insets insets;
+       public int ipadx;
+       public int ipady;
+       
+       public GridBagConstraints(int gridx, int gridy, int gridwidth,
+                       int gridheight, double weightx, double weighty, int anchor, int fill,
+                       Insets insets, int ipadx, int ipady) {
+               this.gridx = gridx;
+               this.gridy = gridy;
+               this.gridwidth = gridwidth;
+               this.gridheight = gridheight;
+               this.weightx = weightx;
+               this.weighty = weighty;
+               this.anchor = anchor;
+               this.fill = fill;
+               if (insets == null)
+                       insets = new Insets(0, 0, 0, 0);
+               this.insets = insets;
+               this.ipadx = ipadx;
+               this.ipady = ipady;
+       }
+
+       String getStyle(boolean margins) {
+               return "style='" + (margins ? 
+                               "margin:" + insets.top + "px " + (ipady + insets.right) + "px "
+                               + insets.bottom + "px " + (ipadx + insets.left) + "px;"
+                               : "text-align:" + (anchor == EAST ? "right" : anchor == WEST? "left" : "center")) + "'";
+       }
+
+}