2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.schemes;
24 * An enum with the colour schemes supported by Jalview.
26 public enum JalviewColourScheme
29 * the order of declaration is the default order in which
30 * items are added to Colour menus
32 Clustal("Clustal", ClustalxColourScheme.class),
33 Blosum62("Blosum62", Blosum62ColourScheme.class),
34 PID("% Identity", PIDColourScheme.class),
35 Zappo("Zappo", ZappoColourScheme.class),
36 Taylor("Taylor", TaylorColourScheme.class),
37 Hydrophobic("Hydrophobic", HydrophobicColourScheme.class),
38 Helix("Helix Propensity", HelixColourScheme.class),
39 Strand("Strand Propensity", StrandColourScheme.class),
40 Turn("Turn Propensity", TurnColourScheme.class),
41 Buried("Buried Index", BuriedColourScheme.class),
42 Nucleotide("Nucleotide", NucleotideColourScheme.class),
43 PurinePyrimidine("Purine/Pyrimidine", PurinePyrimidineColourScheme.class),
44 RNAHelices("RNA Helices", RNAHelicesColour.class),
45 TCoffee("T-Coffee Scores", TCoffeeColourScheme.class),
46 IdColour("Sequence ID", IdColourScheme.class);
47 // RNAInteraction("RNA Interaction type", RNAInteractionColourScheme.class)
51 private Class<? extends ColourSchemeI> myClass;
54 * Constructor given the name of the colour scheme (as used in Jalview
55 * parameters). Note this is not necessarily the same as the 'display name'
56 * used in menu options (as this may be language-dependent).
60 JalviewColourScheme(String s, Class<? extends ColourSchemeI> cl)
67 * Returns the class of the colour scheme
71 public Class<? extends ColourSchemeI> getSchemeClass()
77 * Returns the 'official' name of this colour scheme. This is the name that
78 * identifies the colour scheme as a start-up parameter for the Jalview
79 * application or applet. Note that it may not be the name shown in menu
80 * options, as these may be internationalised.
83 public String toString()