- /** DOCUMENT ME!! */
- public static final int CLUSTAL = 0;
-
- /** DOCUMENT ME!! */
- public static final int BLOSUM = 1;
-
- /** DOCUMENT ME!! */
- public static final int PID = 2;
-
- /** DOCUMENT ME!! */
- public static final int ZAPPO = 3;
-
- /** DOCUMENT ME!! */
- public static final int TAYLOR = 4;
-
- /** DOCUMENT ME!! */
- public static final int HYDROPHOBIC = 5;
-
- /** DOCUMENT ME!! */
- public static final int HELIX = 6;
-
- /** DOCUMENT ME!! */
- public static final int STRAND = 7;
-
- /** DOCUMENT ME!! */
- public static final int TURN = 8;
-
- /** DOCUMENT ME!! */
- public static final int BURIED = 9;
-
- /** DOCUMENT ME!! */
- public static final int NUCLEOTIDE = 10;
-
- /** DOCUMENT ME!! */
- public static final int USER_DEFINED = 11;
-
- /** No Colourscheme Index */
- public static final int NONE = 12;
-
- /** Undefined Colourscheme Index */
- public static final int UNDEFINED = 13;
-
- /**
- * DOCUMENT ME!
- *
- * @param name
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
- public static int getColourIndexFromName(String name)
- {
- int ret = UNDEFINED;
-
- if (name.equalsIgnoreCase("Clustal"))
- {
- ret = CLUSTAL;
- }
- else if (name.equalsIgnoreCase("Blosum62"))
- {
- ret = BLOSUM;
- }
- else if (name.equalsIgnoreCase("% Identity"))
- {
- ret = PID;
- }
- else if (name.equalsIgnoreCase("Zappo"))
- {
- ret = ZAPPO;
- }
- else if (name.equalsIgnoreCase("Taylor"))
- {
- ret = TAYLOR;
- }
- else if (name.equalsIgnoreCase("Hydrophobic"))
- {
- ret = HYDROPHOBIC;
- }
- else if (name.equalsIgnoreCase("Helix Propensity"))
- {
- ret = HELIX;
- }
- else if (name.equalsIgnoreCase("Strand Propensity"))
- {
- ret = STRAND;
- }
- else if (name.equalsIgnoreCase("Turn Propensity"))
- {
- ret = TURN;
- }
- else if (name.equalsIgnoreCase("Buried Index"))
- {
- ret = BURIED;
- }
- else if (name.equalsIgnoreCase("Nucleotide"))
- {
- ret = NUCLEOTIDE;
- }
- else if (name.equalsIgnoreCase("User Defined"))
- {
- ret = USER_DEFINED;
- }
- else if (name.equalsIgnoreCase("None"))
- {
- ret = NONE;
- }
-
- return ret;
- }