X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FTooltip.java;h=76c00473cd207efc897e15cd36769b6296df92e9;hb=9cc5cb837b899016311e8f80e0e4e689e4a54ff6;hp=065544c14848faec516f7909f61e58e268b1f320;hpb=d2735d899ea977b635ca89378daa9ae16c5f55b9;p=jalview.git diff --git a/src/jalview/appletgui/Tooltip.java b/src/jalview/appletgui/Tooltip.java index 065544c1..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,8 +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.drawString("(right click)", linkImage.getWidth(this)+6, (i+1)*fontHeight-3); - g.drawImage(linkImage, x, i * fontHeight, this); + g.drawImage(linkImage, x, i * fontHeight+1, this); + if(lindex+6