From: kiramt Date: Wed, 16 Aug 2017 12:28:13 +0000 (+0100) Subject: JAL-2665 Tidy X-Git-Tag: Release_2_10_3b1~140^2~17 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3d9eece571fe79f1a9b6f74b5837f7c6e842b7fa;p=jalview.git JAL-2665 Tidy --- 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;