From: jprocter Date: Fri, 28 Oct 2011 14:55:01 +0000 (+0100) Subject: JAL-902 structure conservation row for applet X-Git-Tag: Jalview_2_9~565^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a822fc744dcc06e6a8d2399218da0d0dfd56cf2b;p=jalview.git JAL-902 structure conservation row for applet --- diff --git a/src/jalview/appletgui/AlignViewport.java b/src/jalview/appletgui/AlignViewport.java index ab9a25d..95aafab 100644 --- a/src/jalview/appletgui/AlignViewport.java +++ b/src/jalview/appletgui/AlignViewport.java @@ -280,6 +280,14 @@ public class AlignViewport extends AlignmentViewport implements AlignViewportI, alignment.addAnnotation(quality); } + } else { + if (alignment.hasRNAStructure()) + { + strucConsensus = new AlignmentAnnotation("StrucConsensus", "PID", + new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH); + strucConsensus.hasText = true; + strucConsensus.autoCalculated = true; + } } consensus = new AlignmentAnnotation("Consensus", "PID", @@ -290,6 +298,10 @@ public class AlignViewport extends AlignmentViewport implements AlignViewportI, if (showConsensus) { alignment.addAnnotation(consensus); + if (strucConsensus!=null) + { + alignment.addAnnotation(strucConsensus); + } } }