From a822fc744dcc06e6a8d2399218da0d0dfd56cf2b Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 28 Oct 2011 15:55:01 +0100 Subject: [PATCH] JAL-902 structure conservation row for applet --- src/jalview/appletgui/AlignViewport.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); + } } } -- 1.7.10.2