REmove excessive painting
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 16:20:41 +0000 (16:20 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 16:20:41 +0000 (16:20 +0000)
src/jalview/appletgui/IdPanel.java
src/jalview/appletgui/ScalePanel.java
src/jalview/appletgui/SeqPanel.java

index fee5dd4..c510803 100755 (executable)
@@ -117,7 +117,7 @@ public class IdPanel
     }\r
 \r
     lastid = seq;\r
-    alignPanel.paintAlignment(true);\r
+    alignPanel.paintAlignment(false);\r
   }\r
 \r
   public void mouseClicked(MouseEvent e)\r
@@ -224,7 +224,7 @@ public class IdPanel
       selectSeq(seq);\r
     }\r
 \r
-    alignPanel.paintAlignment(true);\r
+    alignPanel.paintAlignment(false);\r
   }\r
 \r
   void selectSeq(int seq)\r
index 4db8054..a1d0bf7 100755 (executable)
@@ -189,7 +189,7 @@ public class ScalePanel
 \r
     if (!stretchingGroup)\r
     {\r
-      ap.paintAlignment(true);\r
+      ap.paintAlignment(false);\r
 \r
       return;\r
     }\r
@@ -206,7 +206,7 @@ public class ScalePanel
     }\r
 \r
     stretchingGroup = false;\r
-    ap.paintAlignment(true);\r
+    ap.paintAlignment(false);\r
   }\r
 \r
   public void mouseDragged(MouseEvent evt)\r
@@ -274,7 +274,7 @@ public class ScalePanel
         }\r
       }\r
 \r
-      ap.paintAlignment(true);\r
+      ap.paintAlignment(false);\r
     }\r
   }\r
 \r
index 034106d..c56ded6 100755 (executable)
@@ -781,7 +781,8 @@ public class SeqPanel
 \r
 \r
         if (features[i].featureGroup != null\r
-            && seqCanvas.fr.featureGroups!=null\r
+           && seqCanvas.fr.featureGroups!=null\r
+            && seqCanvas.fr.featureGroups.containsKey(features[i].featureGroup)\r
             && !((Boolean)seqCanvas.fr.featureGroups.get(features[i].featureGroup)).booleanValue())\r
           continue;\r
 \r