draw text after linkimage
authoramwaterhouse <Andrew Waterhouse>
Wed, 18 Oct 2006 13:00:02 +0000 (13:00 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 18 Oct 2006 13:00:02 +0000 (13:00 +0000)
src/jalview/appletgui/Tooltip.java

index 389b012..76c0047 100755 (executable)
@@ -77,7 +77,14 @@ public class Tooltip extends Canvas implements MouseListener,
                      g.drawString(tip[i].substring(0, lindex), 3, (i+1)*fontHeight-3);\r
                      x+=fm.stringWidth(tip[i].substring(0, lindex)+3);\r
                    }\r
-                    g.drawImage(linkImage, x, i * fontHeight+1, this);\r
+                   g.drawImage(linkImage, x, i * fontHeight+1, this);\r
+                   if(lindex+6<tip[i].length())\r
+                   {\r
+                     g.drawString(tip[i].substring(lindex+6),\r
+                                  x + linkImage.getWidth(this),\r
+                                  (i+1)*fontHeight-3);\r
+                   }\r
+\r
                   }\r
                   else\r
                   g.drawString(tip[i], 3, (i+1)*fontHeight - 3);\r