X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fappletgui%2FTooltip.java;h=76c00473cd207efc897e15cd36769b6296df92e9;hb=32af8b07a990ff91665e7975bc4139133ea9f5e7;hp=b25abd5c7bc26f1b17f7fa2df88137129b8d4855;hpb=bceadbb394604c88ac18e2dcf4b33e735377d7ac;p=jalview.git diff --git a/src/jalview/appletgui/Tooltip.java b/src/jalview/appletgui/Tooltip.java index b25abd5..76c0047 100755 --- a/src/jalview/appletgui/Tooltip.java +++ b/src/jalview/appletgui/Tooltip.java @@ -1,3 +1,21 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer + * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ package jalview.appletgui; @@ -59,7 +77,14 @@ public class Tooltip extends Canvas implements MouseListener, g.drawString(tip[i].substring(0, lindex), 3, (i+1)*fontHeight-3); x+=fm.stringWidth(tip[i].substring(0, lindex)+3); } - g.drawImage(linkImage, x, i * fontHeight+1, this); + g.drawImage(linkImage, x, i * fontHeight+1, this); + if(lindex+6