package jalview.schemes; import java.awt.*; public class NucleotideColourScheme extends ResidueColourScheme { public NucleotideColourScheme() { super(ResidueProperties.nucleotide,0); } public Color findColour(String n) { // System.out.println("called"); log.debug return colors[((Integer)(ResidueProperties.nucleotideHash.get(n))).intValue()]; } public Color findColour(String n, int j) { if (threshold == 0 || aboveThreshold( n, j)) try { return colors[ ( (Integer) (ResidueProperties.nucleotideHash.get(n))).intValue()]; } catch (Exception ex) { return Color.white; } else return Color.white; } }