From 0b3980f60e9cd7c71a84cbcdfd9008f5116e86fb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 20 Oct 2022 10:50:49 +0100 Subject: [PATCH] JAL-2349 tooltip reports value from contact range --- src/jalview/gui/AnnotationPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index ccc086c..7f606c8 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -1078,7 +1078,9 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, ContactGeometry cgeom = new ContactGeometry(clist, ann.graphHeight); ContactGeometry.contactInterval ci = cgeom.mapFor(rowAndOffset, rowAndOffset); - tooltip += "Contact from " + ci.cStart + " to " + ci.cEnd; + ContactRange cr = clist.getRangeFor(ci.cStart, ci.cEnd); + tooltip = "Contact from " + ci.cStart + " to " + ci.cEnd + + "
Mean:" + cr.getMean(); // ap.getStructureSelectionManager().mouseOverSequence(ann.sequenceRef, // new int[] {column, ci.cStart,ci.cEnd}, -1, null) -- 1.7.10.2