g.setColor(Color.gray);\r
g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
\r
-\r
- if(aa.threshold!=null)\r
- {\r
- g.setColor(aa.threshold.colour);\r
- Graphics2D g2 = (Graphics2D)g;\r
- g2.setStroke(new BasicStroke(1,\r
- BasicStroke.CAP_SQUARE,\r
- BasicStroke.JOIN_ROUND, 3f,\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)*av.charWidth,y2);\r
- g2.setStroke(new BasicStroke());\r
- }\r
-\r
eRes = Math.min(eRes, aa.annotations.length);\r
\r
int column = sRes;\r
g.drawLine(x-av.charWidth/2, y1, x+av.charWidth/2, y2);\r
x += av.charWidth;\r
}\r
+ if(aa.threshold!=null)\r
+ {\r
+ g.setColor(aa.threshold.colour);\r
+ Graphics2D g2 = (Graphics2D)g;\r
+ g2.setStroke(new BasicStroke(1,\r
+ BasicStroke.CAP_SQUARE,\r
+ BasicStroke.JOIN_ROUND, 3f,\r
+ new float[] { 5f, 3f }, 0f));\r
+\r
+ y2 = (int)(y - ((aa.threshold.value-min) / range)*graphHeight);\r
+ g.drawLine(0,y2,(eRes-sRes)*av.charWidth,y2);\r
+ g2.setStroke(new BasicStroke());\r
+ }\r
}\r
\r
public void drawBarGraph(Graphics g, AlignmentAnnotation aa,\r
\r
float range = max - min;\r
\r
- if(aa.threshold!=null)\r
- {\r
- g.setColor(aa.threshold.colour);\r
- Graphics2D g2 = (Graphics2D)g;\r
- g2.setStroke(new BasicStroke(1,\r
- BasicStroke.CAP_SQUARE,\r
- BasicStroke.JOIN_ROUND, 3f,\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)*av.charWidth,y2);\r
- g2.setStroke(new BasicStroke());\r
- }\r
-\r
y1 = y2 = y;\r
\r
if(min<0)\r
\r
x += av.charWidth;\r
}\r
+ if(aa.threshold!=null)\r
+ {\r
+ g.setColor(aa.threshold.colour);\r
+ Graphics2D g2 = (Graphics2D)g;\r
+ g2.setStroke(new BasicStroke(1,\r
+ BasicStroke.CAP_SQUARE,\r
+ BasicStroke.JOIN_ROUND, 3f,\r
+ new float[] { 5f, 3f }, 0f));\r
\r
+ y2 = (int)(y - ((aa.threshold.value-min) / range)*aa.graphHeight);\r
+ g.drawLine(0,y2,(eRes-sRes)*av.charWidth,y2);\r
+ g2.setStroke(new BasicStroke());\r
+ }\r
}\r
\r
// used by overview window\r