{
return new TCoffeeColourScheme(sg);
}
+
+ /**
+ * Answers true if the annotated data has TCoffee score annotation
+ */
+ @Override
+ public boolean isApplicableTo(AnnotatedCollectionI ac)
+ {
+ if (ac.getContext() != null)
+ {
+ ac = ac.getContext();
+ }
+ AlignmentAnnotation[] anns = ac.getAlignmentAnnotation();
+ if (anns == null)
+ {
+ return false;
+ }
+ for (AlignmentAnnotation ann : anns)
+ {
+ if (TCoffeeScoreFile.TCOFFEE_SCORE.equals(ann.getCalcId()))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public String getSchemeName()
+ {
+ return JalviewColourScheme.TCoffee.toString();
+ }
}