From: Jim Procter Date: Fri, 18 Aug 2017 14:38:20 +0000 (+0100) Subject: Merge branch 'feature/2588' into merge/develop_feature/2588_JAL-2588 X-Git-Tag: Release_2_10_3b1~142^2~2^2~9^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b2f9f869650be0ea7c8cb2586744064b007866dc;p=jalview.git Merge branch 'feature/2588' into merge/develop_feature/2588_JAL-2588 --- b2f9f869650be0ea7c8cb2586744064b007866dc diff --cc src/jalview/appletgui/SequenceRenderer.java index a382c60,684701e..e55f2a5 --- a/src/jalview/appletgui/SequenceRenderer.java +++ b/src/jalview/appletgui/SequenceRenderer.java @@@ -162,9 -120,10 +120,10 @@@ public class SequenceRenderer implement int length = seq.getLength(); int curStart = -1; - int curWidth = av.getCharWidth(), avCharWidth = av.getCharWidth(), avCharHeight = av - .getCharHeight(); + int curWidth = av.getCharWidth(), avCharWidth = av.getCharWidth(), + avCharHeight = av.getCharHeight(); + Color resBoxColour = Color.white; Color tempColour = null; while (i <= end) { diff --cc src/jalview/gui/SequenceRenderer.java index 4498f88,c27c16b..5be7f55 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@@ -117,41 -95,14 +95,12 @@@ public class SequenceRenderer implement public Color getResidueColour(final SequenceI seq, int position, FeatureColourFinder finder) { - Color col = getResidueBoxColour(seq, position); - - if (finder != null) - { - col = finder.findFeatureColour(col, seq, position); - } - return col; - } - - /** - * DOCUMENT ME! - * - * @param shader - * DOCUMENT ME! - * @param seq - * DOCUMENT ME! - * @param i - * DOCUMENT ME! - */ - void getBoxColour(ResidueShaderI shader, SequenceI seq, int i) - { - if (shader.getColourScheme() != null) - { - resBoxColour = shader.findColour(seq.getCharAt(i), i, seq); - } - else if (forOverview && !Comparison.isGap(seq.getCharAt(i))) - { - resBoxColour = Color.lightGray; - } - else - { - resBoxColour = Color.white; - } + return resColourFinder.getResidueColour(av.getShowBoxes(), + av.getResidueShading(), + allGroups, seq, position, + finder); } - - /** * DOCUMENT ME! *