X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FPCAPanel.java;h=caa2fc2f444dd889f9c96aef856eb5bfa3669da7;hb=f20566c564e18f418c4ccc29fcf77d0471e49334;hp=f0ba274a31a167f88984db02892f135a6d30cb14;hpb=88e9d982ef43c740e3f29b34156f4f57836a84e3;p=jalview.git diff --git a/src/jalview/gui/PCAPanel.java b/src/jalview/gui/PCAPanel.java index f0ba274..caa2fc2 100644 --- a/src/jalview/gui/PCAPanel.java +++ b/src/jalview/gui/PCAPanel.java @@ -389,7 +389,7 @@ public class PCAPanel extends GPCAPanel { pg.translate((int) pf.getImageableX(), (int) pf.getImageableY()); - rc.drawBackground(pg, rc.bgColour); + rc.drawBackground(pg); rc.drawScene(pg); if (rc.drawAxes) { @@ -432,20 +432,19 @@ public class PCAPanel extends GPCAPanel ImageMaker im; - if (type == ImageMaker.TYPE.PNG) + switch (type) { + case PNG: im = new ImageMaker(this, ImageMaker.TYPE.PNG, "Make PNG image from PCA", width, height, null, null, null, 0, false); - } - else if (type == jalview.util.ImageMaker.TYPE.EPS) - { + break; + case EPS: im = new ImageMaker(this, ImageMaker.TYPE.EPS, "Make EPS file from PCA", width, height, null, this.getTitle(), null, 0, false); - } - else - { + break; + default: im = new ImageMaker(this, ImageMaker.TYPE.SVG, "Make SVG file from PCA", width, height, null, this.getTitle(), null, 0, false); @@ -453,7 +452,7 @@ public class PCAPanel extends GPCAPanel if (im.getGraphics() != null) { - rc.drawBackground(im.getGraphics(), Color.black); + rc.drawBackground(im.getGraphics()); rc.drawScene(im.getGraphics()); if (rc.drawAxes) {