import java.awt.event.*;\r
import java.awt.image.*;\r
\r
-import java.util.*;\r
-\r
import javax.swing.*;\r
\r
\r
if(sRes>aa.annotations.length)\r
return;\r
\r
+ eRes = Math.min(eRes, aa.annotations.length);\r
+\r
int x = 0;\r
\r
//Adjustment for fastpaint to left\r
new float[] { 5f, 3f }, 0f));\r
\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
g2.setStroke(new BasicStroke());\r
}\r
\r
if(sRes>aa.annotations.length)\r
return;\r
\r
+ eRes = Math.min(eRes, aa.annotations.length);\r
+\r
int x=0, y1, y2;\r
\r
float range = max - min;\r
new float[] { 5f, 3f }, 0f));\r
\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
g2.setStroke(new BasicStroke());\r
}\r
\r
\r
g.setColor(Color.gray);\r
\r
- g.drawLine(x,y2,(eRes-sRes+1)*av.charWidth,y2);\r
+ g.drawLine(x,y2,(eRes-sRes)*av.charWidth,y2);\r
\r
\r
int column = sRes;\r