/*\r
* Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
*\r
* This program is free software; you can redistribute it and/or\r
* modify it under the terms of the GNU General Public License\r
if(graphStretch>-1)\r
{\r
av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight += graphStretchY - evt.getY();\r
- if(av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight <10)\r
- av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight = 10;\r
+ if(av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight <0)\r
+ av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight = 0;\r
graphStretchY = evt.getY();\r
adjustPanelHeight();\r
ap.repaint();\r
\r
if (row.hasText)\r
{\r
- iconOffset = av.charHeight / 2;\r
+ iconOffset = av.charHeight / 2 + 4;\r
}\r
else\r
{\r
{\r
g.drawString(row.annotations[column].displayCharacter,\r
(x*av.charWidth)+charOffset,\r
- y + iconOffset + 3);\r
+ y + iconOffset );\r
}\r
else if (\r
row.annotations[column - 1] == null\r
{\r
g.drawString(row.annotations[column].displayCharacter,\r
x*av.charWidth+charOffset,\r
- y + iconOffset + 3);\r
+ y + iconOffset );\r
}\r
}\r
\r
}\r
}\r
\r
- if (row.graph>0)\r
+ if (row.graph>0 && row.graphHeight>0)\r
{\r
if(row.graph == AlignmentAnnotation.LINE_GRAPH )\r
{\r