X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceGroup.java;h=b4cb3b17024087dd717c678610991f0f2648a3fb;hb=7ab5d6b0ba5fec1ea4a4239e79c476d841622485;hp=f3cf291d1371d0d9299fd267f72d587086100777;hpb=1889827c44c51f6353fe8619e5d44b421158af23;p=jalview.git diff --git a/src/jalview/datamodel/SequenceGroup.java b/src/jalview/datamodel/SequenceGroup.java index f3cf291..b4cb3b1 100755 --- a/src/jalview/datamodel/SequenceGroup.java +++ b/src/jalview/datamodel/SequenceGroup.java @@ -472,7 +472,7 @@ public class SequenceGroup implements AnnotatedCollectionI } /** - * Max Gaps Threshold (percent) for performing a conservation calculation + * Max Gaps Threshold (percent) for performing a conservation calculation */ private int consPercGaps = 25; @@ -486,7 +486,8 @@ public class SequenceGroup implements AnnotatedCollectionI /** * set Max Gaps Threshold (percent) for performing a conservation calculation - * @param consPercGaps + * + * @param consPercGaps */ public void setConsPercGaps(int consPercGaps) { @@ -537,7 +538,7 @@ public class SequenceGroup implements AnnotatedCollectionI } if (cs != null) { - cs.alignmentChanged(context!=null ? context : this, null); + cs.alignmentChanged(context != null ? context : this, null); } } catch (java.lang.OutOfMemoryError err) { @@ -586,9 +587,10 @@ public class SequenceGroup implements AnnotatedCollectionI consensus.annotations = new Annotation[aWidth]; // should be alignment width AAFrequency.completeConsensus(consensus, cnsns, startRes, endRes + 1, - ignoreGapsInConsensus, showSequenceLogo, nseq); // TODO: setting container - // for - // ignoreGapsInConsensusCalculation); + ignoreGapsInConsensus, showSequenceLogo, nseq); // TODO: setting + // container + // for + // ignoreGapsInConsensusCalculation); } /** @@ -1252,16 +1254,22 @@ public class SequenceGroup implements AnnotatedCollectionI { sequences.clear(); } + private AnnotatedCollectionI context; + /** * set the alignment or group context for this group + * * @param context */ public void setContext(AnnotatedCollectionI context) { - this.context = context; + this.context = context; } - /* (non-Javadoc) + + /* + * (non-Javadoc) + * * @see jalview.datamodel.AnnotatedCollectionI#getContext() */ @Override