reset if clustalX colouring
authoramwaterhouse <Andrew Waterhouse>
Tue, 14 Jun 2005 15:01:21 +0000 (15:01 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 14 Jun 2005 15:01:21 +0000 (15:01 +0000)
src/jalview/datamodel/SequenceGroup.java

index b4c21fc..116e172 100755 (executable)
@@ -156,11 +156,18 @@ public class SequenceGroup
 \r
   public void recalcConservation()\r
   {\r
+    System.out.println("sg recalc");\r
     if (cs != null)\r
     {\r
       cs.setConsensus(AAFrequency.calculate(sequences, 0, getWidth()));\r
     }\r
 \r
+    if (cs instanceof ClustalxColourScheme)\r
+    {\r
+      ( (ClustalxColourScheme) cs).resetClustalX(sequences,getWidth());\r
+    }\r
+\r
+\r
     if ( cs  instanceof ConservationColourScheme)\r
     {\r
       Conservation c = new Conservation(groupName,\r
@@ -171,6 +178,11 @@ public class SequenceGroup
 \r
       ConservationColourScheme ccs = (ConservationColourScheme) cs;\r
       ccs.conserve = c;\r
+      if (ccs.cs instanceof ClustalxColourScheme)\r
+      {\r
+        ( (ClustalxColourScheme) ccs.cs).resetClustalX(sequences, getWidth());\r
+      }\r
+\r
     }\r
   }\r
 \r