Graphics2D gg;
- int imgWidth;
-
- int imgHeight;
-
AlignViewport av;
boolean fastPaint = false;
repaint();
}
- /*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;
- }
-
- }*/
-
private BufferedImage setupImage()
{
BufferedImage lcimg = null;