git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14ead5d
)
draw text after linkimage
author
amwaterhouse
<Andrew Waterhouse>
Wed, 18 Oct 2006 13:00:02 +0000
(13:00 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 18 Oct 2006 13:00:02 +0000
(13:00 +0000)
src/jalview/appletgui/Tooltip.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/Tooltip.java
b/src/jalview/appletgui/Tooltip.java
index
389b012
..
76c0047
100755
(executable)
--- a/
src/jalview/appletgui/Tooltip.java
+++ b/
src/jalview/appletgui/Tooltip.java
@@
-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