From: amwaterhouse Date: Wed, 8 Jun 2005 16:37:43 +0000 (+0000) Subject: group recalc conserve X-Git-Tag: Release_2_0~85 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2f6e9f2fc3f6d683df3caf63186aac36d9e5f8fc;p=jalview.git group recalc conserve --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 1720edc..9d14b26 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -545,7 +545,7 @@ public class SeqPanel SequenceGroup sg = new SequenceGroup(); sg.setStartRes(res); sg.setEndRes(res); - sg.addSequence(sequence); + sg.addSequence(sequence, false); av.setSelectionGroup(sg); stretchGroup = sg; @@ -600,11 +600,12 @@ public class SeqPanel return; } + stretchGroup.recalcConservation(); + if (stretchGroup.cs instanceof ClustalxColourScheme) { stretchGroup.cs = new ClustalxColourScheme(stretchGroup.sequences, av.alignment.getWidth()); - seqCanvas.repaint(); } else if (stretchGroup.cs instanceof ConservationColourScheme) @@ -614,7 +615,6 @@ public class SeqPanel SliderPanel.setConservationSlider(ap, stretchGroup.cs, stretchGroup.getName()); - seqCanvas.repaint(); } else { @@ -629,6 +629,7 @@ public class SeqPanel changeEndRes = false; changeStartRes = false; stretchGroup = null; + seqCanvas.repaint(); ap.repaint(); } @@ -705,16 +706,16 @@ public class SeqPanel if (stretchGroup.sequences.contains(nextSeq)) { - stretchGroup.deleteSequence(seq); - stretchGroup.deleteSequence(nextSeq); + stretchGroup.deleteSequence(seq, false); + stretchGroup.deleteSequence(nextSeq, false); } else { if (seq != null) { - stretchGroup.addSequence(seq); + stretchGroup.addSequence(seq, false); } - stretchGroup.addSequence(nextSeq); + stretchGroup.addSequence(nextSeq, false); } } oldSeq = y;