(JAL-985,JAL-986) documentation and tooltips
[jalview.git] / src / jalview / jbgui / GPreferences.java
index 8e2acc2..29e11ce 100755 (executable)
@@ -642,7 +642,8 @@ public class GPreferences extends JPanel
     sortByTree.setBounds(new Rectangle(22, 136, 168, 23));
     
     autoIdWidth.setFont(JvSwingUtils.getLabelFont());
-    autoIdWidth.setText("Autofit Figure ID width");
+    autoIdWidth.setText("Automatically set ID width");
+    autoIdWidth.setToolTipText("<html>"+JvSwingUtils.wrapTooltip("Adjusts the width of the generated EPS or PNG file to ensure even the longest sequence ID or annotation label is displayed")+"</html>");
     autoIdWidth.setBounds(new Rectangle(228, 96,188,23));
     autoIdWidth.addActionListener(new ActionListener()
     {
@@ -655,6 +656,12 @@ public class GPreferences extends JPanel
     });
     userIdWidthlabel.setFont(JvSwingUtils.getLabelFont());
     userIdWidthlabel.setText("Figure ID column width");
+    userIdWidth
+            .setToolTipText("<html>"+JvSwingUtils
+                    .wrapTooltip("Manually specify the width of the left hand column where sequence IDs and annotation labels will be rendered in exported alignment figures. This setting will be ignored if 'Automatically set ID width' is set")+"</html>");
+    userIdWidthlabel
+            .setToolTipText("<html>"+JvSwingUtils
+                    .wrapTooltip("Manually specify the width of the left hand column where sequence IDs and annotation labels will be rendered in exported alignment figures. This setting will be ignored if 'Automatically set ID width' is set")+"</html>");
     userIdWidthlabel.setBounds(new Rectangle(236, 120,168,23));
     userIdWidth.setFont(JvSwingUtils.getTextAreaFont());
     userIdWidth.setText("");