Sequence.getDatasetSequence().getFeatures
authoramwaterhouse <Andrew Waterhouse>
Mon, 31 Oct 2005 15:54:29 +0000 (15:54 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 31 Oct 2005 15:54:29 +0000 (15:54 +0000)
src/jalview/gui/SeqPanel.java

index 53130af..600da64 100755 (executable)
@@ -95,6 +95,13 @@ public class SeqPanel extends JPanel
                 public void mouseMoved(MouseEvent evt)\r
                 {\r
                     doMouseMoved(evt);\r
+                    if (editingSeqs)\r
+                    {\r
+                      // This is because MacOSX creates a mouseMoved\r
+                      // If control is down\r
+                      if(!av.isDataset())\r
+                        doMouseDragged(evt);\r
+                    }\r
                 }\r
 \r
                 public void mouseDragged(MouseEvent evt)\r
@@ -173,6 +180,7 @@ public class SeqPanel extends JPanel
                if (evt.isAltDown() || evt.isControlDown())\r
                {\r
                  groupEditing = true;\r
+\r
                }\r
 \r
                editingSeqs = true;\r
@@ -382,7 +390,7 @@ public class SeqPanel extends JPanel
         // use aa to see if the mouse pointer is on a\r
         if (av.showSequenceFeatures)\r
         {\r
-            Vector features = sequence.getSequenceFeatures();\r
+            Vector features = sequence.getDatasetSequence().getSequenceFeatures();\r
             if(features!=null)\r
             {\r
               StringBuffer sbuffer = new StringBuffer("<html>");\r
@@ -410,11 +418,13 @@ public class SeqPanel extends JPanel
               }\r
 \r
               sbuffer.append("</html>");\r
-              if(sbuffer.equals("<html></html>"))\r
+              if(sbuffer.length()==13) // <html></html>\r
                 setToolTipText("");\r
               else\r
                setToolTipText(sbuffer.toString());\r
             }\r
+            else\r
+              setToolTipText("");\r
         }\r
     }\r
 \r