From 2a40019eb6a0beb79dc29263a4173e6adb2909a7 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 14 Jun 2005 15:01:21 +0000 Subject: [PATCH] reset if clustalX colouring --- src/jalview/datamodel/SequenceGroup.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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()); + } + } } -- 1.7.10.2