}
/**
- * DOCUMENT ME!
+ * retrieve or create colourscheme associated with name
*
- * @param seqs
- * DOCUMENT ME!
- * @param width
- * DOCUMENT ME!
- * @param name
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
+ * @param seqs sequences to colour
+ * @param width range of sequences to colour
+ * @param name colourscheme name, applet colour parameter specification, or string to parse as colour for new coloursheme
+ * @return Valid Colourscheme
*/
public static ColourSchemeI getColour(java.util.Vector seqs, int width,
String name)
{
// System.err.println("Ignoring unknown colourscheme name");
}
+ try {
+ // fix the launchApp user defined coloursheme transfer bug
+ jalview.schemes.UserColourScheme ucs = new jalview.schemes.UserColourScheme(
+ "white");
+ ucs.parseAppletParameter(name);
+
+ } catch (Exception e)
+ {
+ // System.err.println("Ignoring exception when parsing colourscheme as applet-parameter");
+ }
}
return getColour(seqs, width, getColourIndexFromName(name));
}