- eSeq = 0;\r
- eRes += maxSize;\r
- if (eRes > alwidth)\r
- {\r
- eRes = alwidth;\r
- }\r
-\r
- for (int sSeq = 0, chunky = 0; sSeq < alheight; sSeq += maxSize, chunky++)\r
- {\r
- eSeq += maxSize;\r
- if (eSeq > alheight)\r
- {\r
- eSeq = alheight;\r
- }\r
-\r
- blocky = 0;\r
- blockx = (int) ( (float) sRes / (float) alwidth * width);\r
-\r
- block = nullFrame.createImage( (eRes - sRes) * av.charWidth,\r
- (eSeq - sSeq) * av.charHeight);\r
- g = block.getGraphics();\r
-\r
- ap.seqPanel.seqCanvas.drawPanel(g, sRes, eRes, sSeq, eSeq, sRes, sSeq,\r
- 0);\r
-\r
- blockh = (int) ( (float) (eSeq - sSeq) / (float) alheight *\r
- sequencesHeight) + 1;\r
- blockw = (int) ( (float) (eRes - sRes) / (float) alwidth * width) + 1;\r
-\r
- blocky += (int) ( (float) sSeq / (float) alheight * sequencesHeight);\r
-\r
- mg.drawImage(block, blockx,\r
- blocky,\r
- blockx + blockw,\r
- blocky + blockh,\r
-\r
- 0, 0, block.getWidth(null), block.getHeight(null), this);\r
-\r
- block = null;\r
- }\r
+ overviewSeq.drawPanel(mg,\r
+ (int) (col * sampleCol),\r
+ (int) (col * sampleCol),\r
+ (int) (row * sampleRow),\r
+ (int) (row * sampleRow) + 1,\r
+ (int) (col * sampleCol),\r
+ (int) (row * sampleRow), 0);\r
+ mg.translate(0, 1);\r
+\r
+ if (av.conservation != null)\r
+ ap.annotationPanel.drawGraph(mg, av.conservation,\r
+ (int) (sampleCol) + 1,\r
+ graphHeight,\r
+ (int) (col * sampleCol),\r
+ (int) (col * sampleCol) + 1);\r