if(sRes>aa.annotations.length)\r
return;\r
\r
+\r
+ eRes = Math.min(eRes, aa.annotations.length);\r
+\r
int x = 0;\r
\r
//Adjustment for fastpaint to left\r
y2 = (int)(y - (0-min / range)*graphHeight);\r
\r
g.setColor(Color.gray);\r
- g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
+ g.drawLine(x-av.charWidth,y2,(eRes-sRes)*av.charWidth,y2);\r
\r
\r
if(aa.threshold!=null)\r
{\r
g.setColor(aa.threshold.colour);\r
y2 = (int)(y - ((aa.threshold.value-min) / range)*graphHeight);\r
- g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
+ g.drawLine(x-av.charWidth,y2,(eRes-sRes)*av.charWidth,y2);\r
}\r
\r
- eRes = Math.min(eRes, aa.annotations.length);\r
for (int j = sRes; j < eRes; j++)\r
{\r
if(aa.annotations[j]==null || aa.annotations[j-1]==null)\r
if(sRes>aa.annotations.length)\r
return;\r
\r
+\r
+ eRes = Math.min(eRes, aa.annotations.length);\r
+\r
int x=0, y1, y2;\r
\r
float range = max - min;\r
{\r
g.setColor(aa.threshold.colour);\r
y2 = (int)(y - ((aa.threshold.value-min) / range)*aa.graphHeight);\r
- g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
+ g.drawLine(x-av.charWidth,y2,(eRes-sRes)*av.charWidth,y2);\r
}\r
\r
y1 = y2 = y;\r
\r
g.drawLine(x,y2,(eRes-sRes+1)*av.charWidth,y2);\r
\r
- eRes = Math.min(eRes, aa.annotations.length-1);\r
-\r
-\r
for (int j = sRes; j < eRes; j++)\r
{\r
\r