prefix + "TaylorColourScheme",\r
"Taylor colours"));\r
\r
- colourSchemes.add(new ColourSchemeProperty("PID",\r
- prefix + "PIDColourScheme",\r
- "By PID"));\r
-\r
- colourSchemes.add(new ColourSchemeProperty("BLOSUM62",\r
- prefix + "Blosum62ColourScheme",\r
- "By BLOSUM62 Score"));\r
-\r
- colourSchemes.add(new ColourSchemeProperty("Secondary structure",\r
- prefix + "SecondaryColourScheme",\r
- "By Secondary Structure"));\r
-\r
- colourSchemes.add(new ColourSchemeProperty("User defined",\r
- prefix + "ZappoColourScheme",\r
- "User defined colours"));\r
-\r
colourSchemes.add(new ColourSchemeProperty("Hydrophobic",\r
prefix + "HydrophobicColourScheme",\r
"By Hydrophobicity"));\r
\r
- colourSchemes.add(new ColourSchemeProperty("Conservation",\r
- prefix + "ZappoColourScheme",\r
- null));\r
-\r
colourSchemes.add(new ColourSchemeProperty("Helix",\r
prefix + "HelixColourScheme",\r
"Helix propensity"));\r
prefix + "BuriedColourScheme",\r
"Buried index"));\r
\r
- // colourSchemes.add(new ColourSchemeProperty("Features",\r
- // prefix + "FeatureColourScheme",\r
- // null));\r
+ colourSchemes.add(new ColourSchemeProperty("BLOSUM62",\r
+ prefix + "Blosum62ColourScheme",\r
+ "By BLOSUM62 Score"));\r
+\r
+ colourSchemes.add(new ColourSchemeProperty("User defined",\r
+ prefix + "ZappoColourScheme",\r
+ "User defined colours"));\r
+\r
+ /* colourSchemes.add(new ColourSchemeProperty("PID",\r
+ prefix + "PIDColourScheme",\r
+ "By PID"));*/\r
+\r
+ /* colourSchemes.add(new ColourSchemeProperty("Secondary structure",\r
+ prefix + "SecondaryColourScheme",\r
+ "By Secondary Structure"));*/\r
+\r
+ /* colourSchemes.add(new ColourSchemeProperty("Conservation",\r
+ prefix + "ZappoColourScheme",\r
+ null));*/\r
+\r
+ /* colourSchemes.add(new ColourSchemeProperty("Features",\r
+ prefix + "FeatureColourScheme",\r
+ null));\r
\r
colourSchemes.add(new ColourSchemeProperty("Clustalx",\r
prefix + "ClustalXColourScheme",\r
- "ClustalX colours"));\r
+ "ClustalX colours"));*/\r
}\r
\r
static int indexOf(String scheme) {\r
}\r
}\r
\r
- static int indexOfClass(ColourSchemeI scheme) {\r
+ public static int indexOfClass(ColourSchemeI scheme) {\r
return colourSchemes.indexOfClass(scheme);\r
}\r
\r
protected static String getDefaultClassPrefix() {\r
return "jalview.schemes.";\r
}\r
+\r
+ public static ColourSchemeI getColourScheme(int i)\r
+ {\r
+ switch(i)\r
+ {\r
+ case ColourProperties.HYDROPHOBIC: return new HydrophobicColourScheme();\r
+\r
+ case ColourProperties.TAYLOR: return new TaylorColourScheme();\r
+ case ColourProperties.HELIX: return new HelixColourScheme();\r
+ case ColourProperties.STRAND: return new StrandColourScheme();\r
+ case ColourProperties.TURN: return new TurnColourScheme();\r
+ case ColourProperties.BURIED: return new BuriedColourScheme();\r
+ case ColourProperties.PID: return new PIDColourScheme();\r
+ case ColourProperties.BLOSUM62: return new Blosum62ColourScheme(null);\r
+ case ColourProperties.SECONDARY:return new SecondaryColourScheme();\r
+\r
+ case ColourProperties.ZAPPO:\r
+ case ColourProperties.USER:\r
+ case ColourProperties.CONSERVATION:\r
+ case ColourProperties.FEATURES:\r
+ case ColourProperties.CLUSTALX:\r
+ default: return new ZappoColourScheme();\r
+ }\r
+\r
+ }\r
}\r
\r
\r