g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
\r
\r
- if(aa.graphLines!=null)\r
+ if(aa.threshold!=null)\r
{\r
- for(int l=0; l<aa.graphLines.size(); l++)\r
- {\r
- g.setColor(aa.getGraphLine(l).colour);\r
- y2 = (int)(y - ((aa.getGraphLine(l).value-min) / range)*graphHeight);\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
- }\r
}\r
\r
eRes = Math.min(eRes, aa.annotations.length);\r
\r
float range = max - min;\r
\r
- if(aa.graphLines!=null)\r
+ if(aa.threshold!=null)\r
{\r
- for(int l=0; l<aa.graphLines.size(); l++)\r
- {\r
- g.setColor(aa.getGraphLine(l).colour);\r
- y2 = (int)(y - ((aa.getGraphLine(l).value-min) / range)*aa.graphHeight);\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
- }\r
}\r
\r
y1 = y2 = y;\r