{
public static final String NONE = "None";
+ public static final String USER_DEFINED = "User Defined";
+
/*
* lookup up by character value e.g. 'G' to the colors array index
* e.g. if symbolIndex['K'] = 11 then colors[11] is the colour for K
}
/*
- * inspect the data context (alignment dataset) for residue type
+ * inspect the data context (alignment) for residue type
*/
boolean nucleotide = false;
- AnnotatedCollectionI context = ac.getContext();
- if (context != null)
+ if (ac instanceof AlignmentI)
+ {
+ nucleotide = ((AlignmentI) ac).isNucleotide();
+ }
+ else
{
+ AnnotatedCollectionI context = ac.getContext();
if (context instanceof AlignmentI)
{
nucleotide = ((AlignmentI) context).isNucleotide();
return true;
}
}
- else if (ac instanceof AlignmentI)
- {
- nucleotide = ((AlignmentI) ac).isNucleotide();
- }
- else
- {
- return true;
- }
/*
* does data type match colour scheme type?