X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceGroup.java;h=01bf677bf214512e098856bc1871a64a0492c07a;hb=a45774ee31d9f35d4eff46d54d7deab719afb092;hp=9d3e6db930ab5688972d73748b3e9e67e8ff9f08;hpb=d423f22792e47dbc800ae220a58677f988971d06;p=jalview.git diff --git a/src/jalview/datamodel/SequenceGroup.java b/src/jalview/datamodel/SequenceGroup.java index 9d3e6db..01bf677 100755 --- a/src/jalview/datamodel/SequenceGroup.java +++ b/src/jalview/datamodel/SequenceGroup.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle * * This file is part of Jalview. * @@ -49,7 +49,7 @@ public class SequenceGroup /** * after Olivier's non-conserved only character display */ - boolean showUnconserved = false; + boolean showNonconserved = false; /** * group members @@ -226,8 +226,8 @@ public class SequenceGroup if (!found) continue; } - AlignmentAnnotation newannot = new AlignmentAnnotation(seq - .getAnnotation()[a]); + AlignmentAnnotation newannot = new AlignmentAnnotation( + seq.getAnnotation()[a]); newannot.restrict(startRes, endRes); newannot.setSequenceRef(seqs[ipos]); newannot.adjustForAlignment(); @@ -440,7 +440,9 @@ public class SequenceGroup } /** - * Add s to this sequence group + * Add s to this sequence group. If aligment sequence is already contained in + * group, it will not be added again, but recalculation may happen if the flag + * is set. * * @param s * alignment sequence to be added @@ -508,12 +510,15 @@ public class SequenceGroup } if (cs != null) { - cs.setConservation(c); - - if (cs instanceof ClustalxColourScheme) + if (cs.conservationApplied()) { - ((ClustalxColourScheme) cs) - .resetClustalX(sequences, getWidth()); + cs.setConservation(c); + + if (cs instanceof ClustalxColourScheme) + { + ((ClustalxColourScheme) cs).resetClustalX(sequences, + getWidth()); + } } } } @@ -627,10 +632,9 @@ public class SequenceGroup } /** - * DOCUMENT ME! + * Set the first column selected by this group. Runs from 0<=i