From: Jim Procter Date: Thu, 20 Oct 2022 09:50:49 +0000 (+0100) Subject: JAL-2349 tooltip reports value from contact range X-Git-Tag: Release_2_11_4_0~535 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0b3980f60e9cd7c71a84cbcdfd9008f5116e86fb;p=jalview.git JAL-2349 tooltip reports value from contact range --- 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)