- /*private void setupImage()
- {
- // this draws the whole of the alignment
- imgWidth = getWidth();
- imgHeight = getHeight();
-
- imgWidth -= (imgWidth % charWidth);
- imgHeight -= (imgHeight % charHeight);
-
- if ((imgWidth < 1) || (imgHeight < 1))
- {
- return;
- }
-
- try
- {
- img = new BufferedImage(imgWidth, imgHeight,
- BufferedImage.TYPE_INT_ARGB); // ARGB so alpha compositing works
- gg = (Graphics2D) img.getGraphics();
- gg.setFont(av.getFont());
- } catch (OutOfMemoryError er)
- {
- System.gc();
- System.err.println("SeqCanvas OutOfMemory Redraw Error.\n" + er);
- new OOMWarning("Creating alignment image for display", er);
-
- return;
- }
-
- }*/
-