X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FUserColourScheme.java;h=8e58c209b1642492beb6183b39a56a020425b0e4;hb=21d7606604dab27e62ed700a39425b983901cef1;hp=969e6b3832d9c833a5513a97fd3bf9aaa9ea81af;hpb=8b55eedb9d76a8c65b80f756c4412bf029906bf7;p=jalview.git diff --git a/src/jalview/schemes/UserColourScheme.java b/src/jalview/schemes/UserColourScheme.java index 969e6b3..8e58c20 100755 --- a/src/jalview/schemes/UserColourScheme.java +++ b/src/jalview/schemes/UserColourScheme.java @@ -73,7 +73,7 @@ public class UserColourScheme extends ResidueColourScheme schemeName = from.schemeName; if (from.lowerCaseColours != null) { - lowerCaseColours = new Color[lowerCaseColours.length]; + lowerCaseColours = new Color[from.lowerCaseColours.length]; System.arraycopy(from.lowerCaseColours, 0, lowerCaseColours, 0, from.lowerCaseColours.length); } @@ -238,36 +238,6 @@ public class UserColourScheme extends ResidueColourScheme } - @Override - public Color findColour(char c, int j, SequenceI seq) - { - Color currentColour; - int index = ResidueProperties.aaIndex[c]; - - if ((threshold == 0) || aboveThreshold(c, j)) - { - if (lowerCaseColours != null && 'a' <= c && c <= 'z') - { - currentColour = lowerCaseColours[index]; - } - else - { - currentColour = colors[index]; - } - } - else - { - currentColour = Color.white; - } - - if (conservationColouring) - { - currentColour = applyConservation(currentColour, j); - } - - return currentColour; - } - public void setLowerCaseColours(Color[] lcolours) { lowerCaseColours = lcolours;