From b86f3d0b746aed5fbf9ff2aeaaaf4e7f765dd27d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 3 Oct 2019 09:31:23 +0100 Subject: [PATCH] JAL-3442 removing reinstated code --- .../renderer/seqfeatures/FeatureColourFinder.java | 47 -------------------- 1 file changed, 47 deletions(-) diff --git a/src/jalview/renderer/seqfeatures/FeatureColourFinder.java b/src/jalview/renderer/seqfeatures/FeatureColourFinder.java index 712c9f4..b92d57b 100644 --- a/src/jalview/renderer/seqfeatures/FeatureColourFinder.java +++ b/src/jalview/renderer/seqfeatures/FeatureColourFinder.java @@ -119,53 +119,6 @@ public class FeatureColourFinder return c; } - public int findFeatureColourInt(int defaultColour, SequenceI seq, - int column) - { - // if (noFeaturesDisplayed()) - // { - // return defaultColour; - // } - - Graphics2D g = null; - - /* - * if transparency applies, provide a notional 1x1 graphics context - * that has been primed with the default colour - */ - if (featureRenderer.getTransparency() != 1f) - { - g = (Graphics2D) goff; - if (Platform.isJS()) - { - // Clear the HTML5 canvas color. - // otherwise we get a smearing. - // For whatever reason, this is necessary BH 2019.10.01. - g.setColor(Color.white); - g.fillRect(0, 0, 1, 1); - } - if (defaultColour != 0) - { - offscreenImage.setRGB(0, 0, defaultColour); - } - } - Color c = featureRenderer.findFeatureColour(seq, column + 1, g); - if (c == null) - { - return defaultColour; - } - if (g == null) - { - return c.getRGB(); - } - if (Platform.isJS()) - { - // BH 2019.10.01 because for JavaScript the pixel itself - // is a resource that needs to be recreated in getRGB(0,0) - offscreenImage.flush(); - } - return offscreenImage.getRGB(0, 0); - } /** * Answers true if feature display is turned off, or there are no features * configured to be visible -- 1.7.10.2