From: amwaterhouse Date: Tue, 14 Jun 2005 15:01:21 +0000 (+0000) Subject: reset if clustalX colouring X-Git-Tag: Release_2_0~46 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a40019eb6a0beb79dc29263a4173e6adb2909a7;p=jalview.git reset if clustalX colouring --- diff --git a/src/jalview/datamodel/SequenceGroup.java b/src/jalview/datamodel/SequenceGroup.java index b4c21fc..116e172 100755 --- a/src/jalview/datamodel/SequenceGroup.java +++ b/src/jalview/datamodel/SequenceGroup.java @@ -156,11 +156,18 @@ public class SequenceGroup public void recalcConservation() { + System.out.println("sg recalc"); if (cs != null) { cs.setConsensus(AAFrequency.calculate(sequences, 0, getWidth())); } + if (cs instanceof ClustalxColourScheme) + { + ( (ClustalxColourScheme) cs).resetClustalX(sequences,getWidth()); + } + + if ( cs instanceof ConservationColourScheme) { Conservation c = new Conservation(groupName, @@ -171,6 +178,11 @@ public class SequenceGroup ConservationColourScheme ccs = (ConservationColourScheme) cs; ccs.conserve = c; + if (ccs.cs instanceof ClustalxColourScheme) + { + ( (ClustalxColourScheme) ccs.cs).resetClustalX(sequences, getWidth()); + } + } }