- BufferedImage consensus = new BufferedImage(fullsizeWidth, 60,\r
- BufferedImage.TYPE_3BYTE_BGR);\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
+ mg.setColor(Color.orange);\r
+ mg.fillRect(0,0,width, miniMe.getHeight());\r
+\r
+ float sampleCol = (float) alwidth / (float) width;\r
+ float sampleRow = (float) alheight / (float) sequencesHeight;\r
+\r
+ int lastcol=-1, lastrow=-1;\r
+ int color = Color.white.getRGB();\r
+ int row, col;\r
+ jalview.datamodel.SequenceI seq;\r
+ boolean hiddenRow = false;\r
+ for (row = 0; row < sequencesHeight; row++)\r
+ {\r
+ if((int)(row*sampleRow)==lastrow)\r
+ {\r
+ //No need to recalculate the colours,\r
+ //Just copy from the row above\r
+ for (col = 0; col < width; col++)\r
+ {\r
+ miniMe.setRGB(col, row, miniMe.getRGB(col, row-1));\r
+ }\r
+ continue;\r
+ }\r