From: Renia Correya Date: Wed, 24 Jul 2024 15:54:17 +0000 (+0100) Subject: JAL-4392 Adding secondary structure provider Adding secondary structure X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d46506c4ddd13830bf09a5f6fbad223e80d0eff2;p=jalview.git JAL-4392 Adding secondary structure provider Adding secondary structure provider in parenthesis for each secondary structure annotation. --- diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 35ffbf3..d7b950b 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -1493,6 +1493,12 @@ public class AnnotationLabels extends JPanel vertBar = true; } } + + if(Constants.SECONDARY_STRUCTURE_LABELS.keySet().contains(aa[i].label)) { + String ssSource = AlignmentUtils.extractSSSourceFromAnnotationDescription(aa[i]); + if(ssSource != null && ssSource.length()>0) + label += " (" + ssSource + ")"; + } int labelWidth = fm.stringWidth(label) + 3; x = width - labelWidth;