From: gmungoc Date: Tue, 25 Oct 2016 15:35:51 +0000 (+0100) Subject: JAL-2286 use constant for fixed colours X-Git-Tag: Release_2_10_1^2~22^2~3^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d46cc7c7e4d4c0667c00c3cfb80583ec4c46ffcc;p=jalview.git JAL-2286 use constant for fixed colours --- diff --git a/src/jalview/schemes/Blosum62ColourScheme.java b/src/jalview/schemes/Blosum62ColourScheme.java index 90f90f0..8cb6ff0 100755 --- a/src/jalview/schemes/Blosum62ColourScheme.java +++ b/src/jalview/schemes/Blosum62ColourScheme.java @@ -30,6 +30,9 @@ import java.util.Map; public class Blosum62ColourScheme extends ResidueColourScheme { + private static final Color LIGHT_BLUE = new Color(204, 204, 255); + private static final Color DARK_BLUE = new Color(154, 154, 255); + public Blosum62ColourScheme() { super(); @@ -58,8 +61,7 @@ public class Blosum62ColourScheme extends ResidueColourScheme if (max.indexOf(res) > -1) { - // TODO use a constant here? - currentColour = new Color(154, 154, 255); + currentColour = DARK_BLUE; } else { @@ -74,8 +76,7 @@ public class Blosum62ColourScheme extends ResidueColourScheme if (c > 0) { - // TODO use a constant here? - currentColour = new Color(204, 204, 255); + currentColour = LIGHT_BLUE; } else {