X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationLabels.java;h=6e8417f6e6e59ee9a0099ce9ddf1fc6d24eff8b9;hb=81316c6cc11e29c893d55e87ebd16d9ecd09c1f3;hp=ad6f9e509743e7db3e3374937d0da7c055488c28;hpb=defbcc5ef50f2287ea40d4a196495ba33b986eb7;p=jalview.git diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index ad6f9e5..6e8417f 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -478,20 +478,29 @@ public class AnnotationLabels extends JPanel implements MouseListener, { desc.append("
"); } - + // if (aa.hasProperties()) + // { + // desc.append(""); + // for (String prop : aa.getProperties()) + // { + // desc.append(""); + // } + // desc.append("
" + prop + "" + // + aa.getProperty(prop) + "
"); + // } } else { // begin the tooltip's html fragment desc.append(""); + if (aa.hasScore()) + { + // TODO: limit precision of score to avoid noise from imprecise + // doubles + // (64.7 becomes 64.7+/some tiny value). + desc.append(" Score: " + aa.score); + } } - if (aa.hasScore()) - { - // TODO: limit precision of score to avoid noise from imprecise doubles - // (64.7 becomes 64.7+/some tiny value). - desc.append(" Score: " + aa.score); - } - if (desc.length() > 6) { desc.append(""); @@ -502,7 +511,6 @@ public class AnnotationLabels extends JPanel implements MouseListener, this.setToolTipText(null); } } - } /**