X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FPDBChain.java;h=e8f1bc956d7fd371deb15691b87758ad306ca2d3;hb=13317fa1bc7bf640dc1967ce4438676e89390ad3;hp=2dd6d372f407a58e84744a2a469f849d5b850bb1;hpb=b8eecc11ecdeebc95f00014b5e588a583211ea32;p=jalview.git diff --git a/src/MCview/PDBChain.java b/src/MCview/PDBChain.java index 2dd6d37..e8f1bc9 100755 --- a/src/MCview/PDBChain.java +++ b/src/MCview/PDBChain.java @@ -267,7 +267,7 @@ public class PDBChain bonds.addElement(new Bond(start, end, at1, at2)); } - public void makeResidueList() + public void makeResidueList(boolean visibleChainAnnotation) { int count = 0; Object symbol; @@ -377,23 +377,27 @@ public class PDBChain .elementAt(i)); resFeatures.setElementAt(null, i); } - Annotation[] annots = new Annotation[resAnnotation.size()]; - float max = 0; - for (i = 0, iSize = annots.length; i < iSize; i++) + if (visibleChainAnnotation) { - annots[i] = (Annotation) resAnnotation.elementAt(i); - if (annots[i].value > max) + Annotation[] annots = new Annotation[resAnnotation.size()]; + float max = 0; + for (i = 0, iSize = annots.length; i < iSize; i++) { - max = annots[i].value; + annots[i] = (Annotation) resAnnotation.elementAt(i); + if (annots[i].value > max) + { + max = annots[i].value; + } + resAnnotation.setElementAt(null, i); } - resAnnotation.setElementAt(null, i); + + AlignmentAnnotation tfactorann = new AlignmentAnnotation( + "PDB.TempFactor", "Temperature Factor for " + + sequence.getName(), annots, 0, max, + AlignmentAnnotation.LINE_GRAPH); + tfactorann.setSequenceRef(sequence); + sequence.addAlignmentAnnotation(tfactorann); } - AlignmentAnnotation tfactorann = new AlignmentAnnotation( - "PDB.TempFactor", "Temperature Factor for " - + sequence.getName(), annots, 0, max, - AlignmentAnnotation.LINE_GRAPH); - tfactorann.setSequenceRef(sequence); - sequence.addAlignmentAnnotation(tfactorann); } public void setChargeColours()