From 3d9eece571fe79f1a9b6f74b5837f7c6e842b7fa Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 16 Aug 2017 13:28:13 +0100 Subject: [PATCH] JAL-2665 Tidy --- src/jalview/gui/SeqCanvas.java | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 6f63dd6..e999e78 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -61,10 +61,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI Graphics2D gg; - int imgWidth; - - int imgHeight; - AlignViewport av; boolean fastPaint = false; @@ -450,37 +446,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI 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; -- 1.7.10.2