X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;h=6adc41987f5ef9fed6ea66969692e0f5935881a7;hb=f6cb90d43782ca99cf2b1cbee2dc76bca3d1d466;hp=d5c3ed3acf8456a0fa3b2d7d51d3cce80edf7038;hpb=eb3461a71b073a0e7a9a2dba6481b5ed3fca71e9;p=jalview.git diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index d5c3ed3..6adc419 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -488,20 +488,27 @@ public class SequenceAnnotationReport ds = ds.getDatasetSequence(); } + /* * add any annotation scores */ AlignmentAnnotation[] anns = ds.getAnnotation(); - for (int i = 0; anns != null && i < anns.length; i++) - { - AlignmentAnnotation aa = anns[i]; - if (aa != null && aa.hasScore() && aa.sequenceRef != null) + if (anns!=null && anns.length>0) { + boolean first=true; + for (int i = 0; anns != null && i < anns.length; i++) { - sb.append("
").append(aa.label).append(": ") - .append(aa.getScore()); + AlignmentAnnotation aa = anns[i]; + if (aa != null && aa.hasScore() && aa.sequenceRef != null) + { + if (first) { + sb.append("
").append("Annotation Scores
"); + first=false; + } + sb.append("
").append(aa.label).append(": ") + .append(aa.getScore()); + } } } - if (showDbRefs) { maxWidth = Math.max(maxWidth, appendDbRefs(sb, ds, summary)); @@ -535,8 +542,8 @@ public class SequenceAnnotationReport sb.append(bitScore); maxWidth = Math.max(maxWidth, eValue.length()); maxWidth = Math.max(maxWidth, bitScore.length()); + sb.append("
"); } - sb.append("
"); sb.append(""); return maxWidth;