Formatting
[jalview.git] / src / jalview / jbgui / GUserDefinedColours.java
index 9b685b5..1801152 100755 (executable)
@@ -1,28 +1,26 @@
 /*\r
-* Jalview - A Sequence Alignment Editor and Viewer\r
-* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
-*\r
-* This program is free software; you can redistribute it and/or\r
-* modify it under the terms of the GNU General Public License\r
-* as published by the Free Software Foundation; either version 2\r
-* of the License, or (at your option) any later version.\r
-*\r
-* This program is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* You should have received a copy of the GNU General Public License\r
-* along with this program; if not, write to the Free Software\r
-* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
-*/\r
+ * Jalview - A Sequence Alignment Editor and Viewer\r
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+ */\r
 package jalview.jbgui;\r
 \r
 import java.awt.*;\r
 import java.awt.event.*;\r
-\r
 import javax.swing.*;\r
-import java.awt.Dimension;\r
 \r
 /**\r
  * DOCUMENT ME!\r
@@ -30,17 +28,18 @@ import java.awt.Dimension;
  * @author $author$\r
  * @version $Revision$\r
  */\r
-public class GUserDefinedColours extends JPanel\r
+public class GUserDefinedColours\r
+    extends JPanel\r
 {\r
-    protected JColorChooser colorChooser = new JColorChooser();\r
-    protected JPanel buttonPanel = new JPanel();\r
-    protected GridLayout gridLayout = new GridLayout();\r
-    JPanel lowerPanel = new JPanel();\r
-    protected JButton okButton = new JButton();\r
-    protected JButton applyButton = new JButton();\r
-    protected JButton loadbutton = new JButton();\r
-    protected JButton savebutton = new JButton();\r
-    protected JButton cancelButton = new JButton();\r
+  protected JColorChooser colorChooser = new JColorChooser();\r
+  protected JPanel buttonPanel = new JPanel();\r
+  protected GridLayout gridLayout = new GridLayout();\r
+  JPanel lowerPanel = new JPanel();\r
+  protected JButton okButton = new JButton();\r
+  protected JButton applyButton = new JButton();\r
+  protected JButton loadbutton = new JButton();\r
+  protected JButton savebutton = new JButton();\r
+  protected JButton cancelButton = new JButton();\r
   JPanel namePanel = new JPanel();\r
   JLabel jLabel1 = new JLabel();\r
   protected JTextField schemeName = new JTextField();\r
@@ -60,78 +59,79 @@ public class GUserDefinedColours extends JPanel
   protected JCheckBox caseSensitive = new JCheckBox();\r
   protected JButton lcaseColour = new JButton();\r
   /**\r
-     * Creates a new GUserDefinedColours object.\r
-     */\r
-    public GUserDefinedColours()\r
+   * Creates a new GUserDefinedColours object.\r
+   */\r
+  public GUserDefinedColours()\r
+  {\r
+    try\r
     {\r
-        try\r
-        {\r
-            jbInit();\r
-        }\r
-        catch (Exception e)\r
-        {\r
-            e.printStackTrace();\r
-        }\r
-\r
+      jbInit();\r
+    }\r
+    catch (Exception e)\r
+    {\r
+      e.printStackTrace();\r
     }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @throws Exception DOCUMENT ME!\r
-     */\r
-    private void jbInit() throws Exception\r
+  }\r
+\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @throws Exception DOCUMENT ME!\r
+   */\r
+  private void jbInit()\r
+      throws Exception\r
+  {\r
+    this.setLayout(borderLayout4);\r
+    buttonPanel.setLayout(gridLayout);\r
+    gridLayout.setColumns(4);\r
+    gridLayout.setRows(5);\r
+    okButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    okButton.setText("OK");\r
+    okButton.addActionListener(new java.awt.event.ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        okButton_actionPerformed(e);\r
+      }\r
+    });\r
+    applyButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    applyButton.setText("Apply");\r
+    applyButton.addActionListener(new java.awt.event.ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        applyButton_actionPerformed(e);\r
+      }\r
+    });\r
+    loadbutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    loadbutton.setText("Load scheme");\r
+    loadbutton.addActionListener(new java.awt.event.ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        loadbutton_actionPerformed(e);\r
+      }\r
+    });\r
+    savebutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    savebutton.setText("Save scheme");\r
+    savebutton.addActionListener(new java.awt.event.ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        savebutton_actionPerformed(e);\r
+      }\r
+    });\r
+    cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    cancelButton.setText("Cancel");\r
+    cancelButton.addActionListener(new java.awt.event.ActionListener()\r
     {\r
-        this.setLayout(borderLayout4);\r
-        buttonPanel.setLayout(gridLayout);\r
-        gridLayout.setColumns(4);\r
-        gridLayout.setRows(5);\r
-        okButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        okButton.setText("OK");\r
-        okButton.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    okButton_actionPerformed(e);\r
-                }\r
-            });\r
-        applyButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        applyButton.setText("Apply");\r
-        applyButton.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    applyButton_actionPerformed(e);\r
-                }\r
-            });\r
-        loadbutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        loadbutton.setText("Load scheme");\r
-        loadbutton.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    loadbutton_actionPerformed(e);\r
-                }\r
-            });\r
-        savebutton.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        savebutton.setText("Save scheme");\r
-        savebutton.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    savebutton_actionPerformed(e);\r
-                }\r
-            });\r
-        cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        cancelButton.setText("Cancel");\r
-        cancelButton.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    cancelButton_actionPerformed(e);\r
-                }\r
-            });\r
-        this.setBackground(new Color(212, 208, 223));\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        cancelButton_actionPerformed(e);\r
+      }\r
+    });\r
+    this.setBackground(new Color(212, 208, 223));\r
     lowerPanel.setOpaque(false);\r
     lowerPanel.setLayout(borderLayout3);\r
     colorChooser.setOpaque(false);\r
@@ -196,58 +196,58 @@ public class GUserDefinedColours extends JPanel
     this.add(colorChooser, java.awt.BorderLayout.EAST);\r
   }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void okButton_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void okButton_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void applyButton_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void applyButton_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void loadbutton_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void loadbutton_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void savebutton_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void savebutton_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void cancelButton_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void cancelButton_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 \r
-    public void caseSensitive_actionPerformed(ActionEvent e)\r
-    {\r
+  public void caseSensitive_actionPerformed(ActionEvent e)\r
+  {\r
 \r
-    }\r
+  }\r
 \r
-    public void lcaseColour_actionPerformed(ActionEvent e)\r
-    {\r
+  public void lcaseColour_actionPerformed(ActionEvent e)\r
+  {\r
 \r
-    }\r
+  }\r
 }\r