- /**
- * Draw alignment rows and columns onto an image
- *
- * @param rit
- * Iterator over rows to be drawn
- * @param cit
- * Iterator over columns to be drawn
- * @return image containing the drawing
- */
- public BufferedImage draw(AlignmentRowsCollectionI rows,
- AlignmentColsCollectionI cols)
- {
- this.rows = rows;
- this.cols = cols;
- iter = rows.iterator();
-
- w = miniMe.getWidth();
- h = miniMe.getHeight();
- alignmentHeight = h - graphHeight;
- totalPixels = w * alignmentHeight;
- lastRowUpdate = 0;
- lastUpdate = 0;
-
- if (showProgress)
- {
- changeSupport.firePropertyChange(UPDATE, -1, 0);
- }
-
- WritableRaster raster = miniMe.getRaster();
- DataBufferInt db = (DataBufferInt) raster.getDataBuffer();
- Platform.timeCheck(null, Platform.TIME_MARK);
- pixels = db.getBankData()[0];
- bscol.clear();
- for (int c : cols)
- {
- bscol.set(c);
- }
- state = STATE_INIT;
- mainLoop();
-
- return miniMe;
- }
-