/** DOCUMENT ME!! */
public static final int USER_DEFINED = 11;
- /** DOCUMENT ME!! */
+ /** No Colourscheme Index */
public static final int NONE = 12;
+ /** Undefined Colourscheme Index */
+ public static final int UNDEFINED = 13;
+
/**
* DOCUMENT ME!
*/
public static int getColourIndexFromName(String name)
{
- int ret = 12;
+ int ret = UNDEFINED;
if (name.equalsIgnoreCase("Clustal"))
{
{
ret = USER_DEFINED;
}
+ else if (name.equalsIgnoreCase("None"))
+ {
+ ret = NONE;
+ }
return ret;
}
public static String getColourName(ColourSchemeI cs)
{
- int index = 12;
+ int index = NONE;
if (cs instanceof ClustalxColourScheme)
{
String name)
{
int colindex = getColourIndexFromName(name);
- if (colindex > USER_DEFINED)
+ if (colindex == UNDEFINED) // USER_DEFINED)
{
try
{