From: amwaterhouse Date: Fri, 15 Apr 2005 14:58:34 +0000 (+0000) Subject: draw graph label lower down X-Git-Tag: Release_2_0~412 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=908731cadc81a05b6fcaab8290f700b8fd060c29;p=jalview.git draw graph label lower down --- diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 9c12b89..3332f08 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -193,9 +193,15 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti x = getWidth() - fm.stringWidth(aa[i].label)-3; + if(aa[i].isGraph) + y+=(aa[i].height/3); + g.drawString(aa[i].label, x, y); - y+=aa[i].height; + if(aa[i].isGraph) + y+=(2*aa[i].height/3); + else + y+=aa[i].height; } if (active)