Smooth font option
authoramwaterhouse <Andrew Waterhouse>
Mon, 30 Jan 2006 14:53:04 +0000 (14:53 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 30 Jan 2006 14:53:04 +0000 (14:53 +0000)
src/jalview/jbgui/GPreferences.java

index 2001efd..02756f1 100755 (executable)
@@ -103,6 +103,7 @@ public class GPreferences extends JPanel
   Font verdana11 = new java.awt.Font("Verdana", Font.PLAIN, 11);\r
   protected JCheckBox seqLimit = new JCheckBox();\r
   GridLayout gridLayout3 = new GridLayout();\r
+  protected JCheckBox smoothFont = new JCheckBox();\r
   /**\r
      * Creates a new GPreferences object.\r
      */\r
@@ -184,7 +185,7 @@ public class GPreferences extends JPanel
         gapLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
         gapLabel.setText("Gap Symbol ");\r
     colour.setFont(verdana11);\r
-        colour.setBounds(new Rectangle(170, 170, 155, 21));\r
+        colour.setBounds(new Rectangle(172, 180, 155, 21));\r
         colourLabel.setFont(verdana11);\r
         colourLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
         colourLabel.setText("Colour ");\r
@@ -192,20 +193,20 @@ public class GPreferences extends JPanel
         fontLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
         fontLabel.setText("Font ");\r
     fontSizeCB.setFont(verdana11);\r
-        fontSizeCB.setBounds(new Rectangle(317, 111, 49, 21));\r
+        fontSizeCB.setBounds(new Rectangle(318, 100, 49, 21));\r
         fontStyleCB.setFont(verdana11);\r
-        fontStyleCB.setBounds(new Rectangle(365, 111, 70, 21));\r
+        fontStyleCB.setBounds(new Rectangle(366, 100, 70, 21));\r
         fontNameCB.setFont(verdana11);\r
-        fontNameCB.setBounds(new Rectangle(170, 111, 147, 21));\r
+        fontNameCB.setBounds(new Rectangle(171, 100, 147, 21));\r
         gapSymbolCB.setFont(verdana11);\r
-        gapSymbolCB.setBounds(new Rectangle(170, 141, 69, 21));\r
+        gapSymbolCB.setBounds(new Rectangle(172, 153, 69, 21));\r
         startupCheckbox.setText("Open file");\r
     startupCheckbox.setFont(verdana11);\r
         startupCheckbox.setHorizontalAlignment(SwingConstants.RIGHT);\r
         startupCheckbox.setHorizontalTextPosition(SwingConstants.LEFT);\r
         startupCheckbox.setSelected(true);\r
         startupFileTextfield.setFont(verdana11);\r
-        startupFileTextfield.setBounds(new Rectangle(170, 232, 271, 20));\r
+        startupFileTextfield.setBounds(new Rectangle(170, 236, 271, 20));\r
         startupFileTextfield.addMouseListener(new MouseAdapter()\r
             {\r
                 public void mouseClicked(MouseEvent e)\r
@@ -273,7 +274,7 @@ public class GPreferences extends JPanel
     linkPanel.setLayout(borderLayout2);\r
     editLinkButtons.setLayout(gridLayout1);\r
     gridLayout1.setRows(3);\r
-    linkNameList.setFont(new java.awt.Font("Verdana", Font.ITALIC, 11));\r
+    linkNameList.setFont(verdana11);\r
     linkNameList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
     linkPanel2.setLayout(borderLayout3);\r
     linkURLList.setFont(verdana11);\r
@@ -303,14 +304,14 @@ public class GPreferences extends JPanel
     jPanel1.setBorder(titledBorder1);\r
     jPanel1.setLayout(gridBagLayout1);\r
     sortby.setFont(verdana11);\r
-    sortby.setBounds(new Rectangle(170, 200, 155, 21));\r
+    sortby.setBounds(new Rectangle(171, 208, 155, 21));\r
     sortLabel.setFont(verdana11);\r
     sortLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
     sortLabel.setText("Sort by ");\r
-    jPanel2.setBounds(new Rectangle(7, 17, 158, 242));\r
+    jPanel2.setBounds(new Rectangle(7, 17, 158, 246));\r
     jPanel2.setLayout(gridLayout2);\r
-    gridLayout2.setRows(8);\r
-    jPanel3.setBounds(new Rectangle(168, 47, 274, 26));\r
+    gridLayout2.setRows(9);\r
+    jPanel3.setBounds(new Rectangle(167, 41, 274, 26));\r
     exportTab.setLayout(null);\r
     epsLabel.setFont(verdana11);\r
     epsLabel.setHorizontalAlignment(SwingConstants.RIGHT);\r
@@ -333,7 +334,7 @@ public class GPreferences extends JPanel
     msfjv.setFont(verdana11);\r
     msfjv.setHorizontalAlignment(SwingConstants.LEFT);\r
     pirjv.setText("PIR     ");\r
-    jPanel11.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
+    jPanel11.setFont(verdana11);\r
     jPanel11.setBorder(titledBorder2);\r
     jPanel11.setBounds(new Rectangle(30, 72, 196, 182));\r
     jPanel11.setLayout(gridLayout3);\r
@@ -347,30 +348,36 @@ public class GPreferences extends JPanel
     pileupjv.setHorizontalAlignment(SwingConstants.LEFT);\r
     pirjv.setFont(verdana11);\r
     pirjv.setHorizontalAlignment(SwingConstants.LEFT);\r
-    seqLimit.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
+    seqLimit.setFont(verdana11);\r
     seqLimit.setHorizontalAlignment(SwingConstants.RIGHT);\r
     seqLimit.setHorizontalTextPosition(SwingConstants.LEADING);\r
     seqLimit.setText("Full Sequence Id");\r
     gridLayout3.setRows(8);\r
+    smoothFont.setFont(verdana11);\r
+    smoothFont.setHorizontalAlignment(SwingConstants.RIGHT);\r
+    smoothFont.setHorizontalTextPosition(SwingConstants.LEADING);\r
+    smoothFont.setText("Smooth Font");\r
     jPanel2.add(fullScreen);\r
+\r
     jPanel2.add(annotations);\r
     jPanel2.add(seqLimit);\r
     jPanel2.add(fontLabel);\r
+    jPanel2.add(smoothFont);\r
     jPanel2.add(gapLabel);\r
     jPanel2.add(colourLabel);\r
     jPanel2.add(sortLabel);\r
     jPanel2.add(startupCheckbox);\r
-    visualTab.add(gapSymbolCB);\r
+    visualTab.add(startupFileTextfield);\r
+    visualTab.add(sortby);\r
     visualTab.add(colour);\r
+    visualTab.add(gapSymbolCB);\r
+    visualTab.add(fontNameCB);\r
+    visualTab.add(fontSizeCB);\r
+    visualTab.add(fontStyleCB);\r
     visualTab.add(jPanel3);\r
     jPanel3.add(conservation);\r
     jPanel3.add(identity);\r
     jPanel3.add(quality);\r
-    visualTab.add(sortby);\r
-    visualTab.add(startupFileTextfield);\r
-    visualTab.add(fontNameCB);\r
-    visualTab.add(fontSizeCB);\r
-    visualTab.add(fontStyleCB);\r
     visualTab.add(jPanel2);\r
     linkPanel.add(editLinkButtons, BorderLayout.EAST);\r
     editLinkButtons.add(newLink, null);\r
@@ -421,7 +428,7 @@ public class GPreferences extends JPanel
         dlcr.setHorizontalAlignment(DefaultListCellRenderer.CENTER);\r
         gapSymbolCB.setRenderer(dlcr);\r
 \r
-    tabbedPane.add(visualTab, "Visual");\r
+    tabbedPane.add(visualTab, "visualTab");\r
     tabbedPane.add(connectTab,"Connections");\r
     tabbedPane.add(exportTab, "Output");\r
     jPanel11.add(jLabel1);\r
@@ -432,6 +439,7 @@ public class GPreferences extends JPanel
     jPanel11.add(pfamjv);\r
     jPanel11.add(pileupjv);\r
     jPanel11.add(pirjv);\r
+\r
     exportTab.add(epsLabel);\r
     exportTab.add(epsRendering);\r
     exportTab.add(jPanel11);\r