draw graph label lower down
authoramwaterhouse <Andrew Waterhouse>
Fri, 15 Apr 2005 14:58:34 +0000 (14:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 15 Apr 2005 14:58:34 +0000 (14:58 +0000)
src/jalview/gui/AnnotationLabels.java

index 9c12b89..3332f08 100755 (executable)
@@ -193,9 +193,15 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti
 \r
      x = getWidth() - fm.stringWidth(aa[i].label)-3;\r
 \r
+     if(aa[i].isGraph)\r
+       y+=(aa[i].height/3);\r
+\r
      g.drawString(aa[i].label, x, y);\r
 \r
-     y+=aa[i].height;\r
+     if(aa[i].isGraph)\r
+       y+=(2*aa[i].height/3);\r
+    else\r
+       y+=aa[i].height;\r
    }\r
 \r
    if (active)\r