From d46cc7c7e4d4c0667c00c3cfb80583ec4c46ffcc Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 25 Oct 2016 16:35:51 +0100 Subject: [PATCH] JAL-2286 use constant for fixed colours --- src/jalview/schemes/Blosum62ColourScheme.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 { -- 1.7.10.2