* along with this program; if not, write to the Free Software\r
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\r
*/\r
-\r
package jalview.schemes;\r
\r
import java.awt.*;\r
\r
-public class NucleotideColourScheme extends ResidueColourScheme\r
-{\r
- public NucleotideColourScheme() {\r
- super(ResidueProperties.nucleotide,0);\r
- }\r
-\r
-\r
- public Color findColour(String n)\r
- {\r
- // System.out.println("called"); log.debug\r
- return colors[((Integer)(ResidueProperties.nucleotideHash.get(n))).intValue()];\r
- }\r
-\r
-\r
- public Color findColour(String n, int j) {\r
-\r
- if (threshold == 0 || aboveThreshold( n, j))\r
- try\r
- {\r
- return colors[ ( (Integer) (ResidueProperties.nucleotideHash.get(n))).intValue()];\r
- }\r
- catch (Exception ex)\r
- {\r
- return Color.white;\r
- }\r
- else\r
- return Color.white;\r
-\r
- }\r
\r
+public class NucleotideColourScheme extends ResidueColourScheme {\r
+ public NucleotideColourScheme() {\r
+ super(ResidueProperties.nucleotide, 0);\r
+ }\r
+\r
+ public Color findColour(String n) {\r
+ // System.out.println("called"); log.debug\r
+ return colors[((Integer) (ResidueProperties.nucleotideHash.get(n))).intValue()];\r
+ }\r
+\r
+ public Color findColour(String n, int j) {\r
+ if ((threshold == 0) || aboveThreshold(n, j)) {\r
+ try {\r
+ return colors[((Integer) (ResidueProperties.nucleotideHash.get(n))).intValue()];\r
+ } catch (Exception ex) {\r
+ return Color.white;\r
+ }\r
+ } else {\r
+ return Color.white;\r
+ }\r
+ }\r
}\r