- block = new BufferedImage((eRes - sRes) * av.charWidth,\r
- (eSeq - sSeq) * av.charHeight,\r
- BufferedImage.TYPE_3BYTE_BGR);\r
- g = block.getGraphics();\r
-\r
- ap.seqPanel.seqCanvas.drawPanel(g, sRes, eRes, sSeq, eSeq,\r
- sRes, sSeq, 0);\r
-\r
- blockh = (int) ((float) (eSeq - sSeq) / (float) alheight * sequencesHeight) +\r
- 1;\r
- blockw = (int) ((float) (eRes - sRes) / (float) alwidth * width) +\r
- 1;\r
-\r
- blocky += (int) ((float) sSeq / (float) alheight * sequencesHeight);\r
-\r
- if(av.conservation!=null)\r
- {\r
- consensus = new BufferedImage( (eRes - sRes) * av.charWidth, 60,\r
- BufferedImage.TYPE_3BYTE_BGR);\r
- cg = consensus.getGraphics();\r
-\r
- ap.annotationPanel.drawGraph(cg, av.conservation,\r
- (eRes - sRes) * av.charWidth, 60, sRes, eRes);\r
-\r
- mg.drawImage(consensus, blockx, sequencesHeight, blockx + blockw,\r
-\r
- sequencesHeight + graphHeight, 0, 0,\r
- (eRes - sRes) * av.charWidth, 60, this);\r
- }\r
-\r
- mg.drawImage(block, blockx, blocky, blockx + blockw,\r
- blocky + blockh, 0, 0, block.getWidth(),\r
- block.getHeight(), null);\r
-\r
- block = null;\r
- repaint();\r
- }\r
-\r
-\r
- }\r
- }\r
- catch (OutOfMemoryError error)\r
- {\r
- System.err.println(\r
- "Out of memory when trying to calculate the overview window image!");\r