- Image consensus = nullFrame.createImage(fullsizeWidth, 60);\r
- Graphics g = consensus.getGraphics();\r
- ap.annotationPanel.drawGraph(g, av.conservation, fullsizeWidth, 60);\r
- mg.drawImage(consensus, 0, sequencesHeight, width,\r
- sequencesHeight + graphHeight, 0, 0, fullsizeWidth, 60, this);\r
-\r
-\r
- boolean oldRenderGaps = av.renderGaps;\r
- try{\r
- // We'll have to draw the full size alignment in chunks, as an image of the\r
- // whole alignment requires too much memory\r
-\r
- // Max size depends on the font size, the following is a\r
- // guess at a size which works\r
- int maxSize = 2000 / av.getFont().getSize();\r
- Image block;\r
- int blockx=0, blocky=0, blockw=0, blockh=0, eRes=0, eSeq=0;\r
-\r
- av.setRenderGaps(false);\r
- for(int sRes=0, chunkx=0; sRes<alwidth; sRes+=maxSize, chunkx++)\r
+ float sampleCol = (float) alwidth / (float) width;\r
+ float sampleRow = (float) alheight / (float) sequencesHeight;\r
+\r
+ int lastcol=0, lastrow=0;\r
+ int xstart=0, ystart=0;\r
+ Color color = Color.yellow;\r
+ int row, col, sameRow = 0, sameCol = 0;\r
+ jalview.datamodel.SequenceI seq;\r
+ boolean hiddenRow = false;\r
+ for (row = 0; row <= sequencesHeight; row++)\r
+ {\r
+ if((int)(row*sampleRow)==lastrow)\r