From 908731cadc81a05b6fcaab8290f700b8fd060c29 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 15 Apr 2005 14:58:34 +0000 Subject: [PATCH] draw graph label lower down --- src/jalview/gui/AnnotationLabels.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 1.7.10.2