public interface ColourSchemeI
{
/**
- * Returns the fixed colour for the colour scheme. For use when the colour
- * does not vary.
- *
- * @return
- */
- Color findColour();
-
- /**
* Returns the colour for the given character. For use when the colour depends
* only on the symbol.
*
/**
* Creates and returns a new instance of the colourscheme configured to colour
- * the given connection
+ * the given collection. Note that even simple colour schemes should return a
+ * new instance for each call to this method, as different instances may have
+ * differing shading by consensus or percentage identity applied.
*
* @param sg
* @param hiddenRepSequences
- * @return copy of current scheme with any inherited settings transfered
+ * @return copy of current scheme with any inherited settings transferred
*/
- ColourSchemeI applyTo(AnnotatedCollectionI sg,
+ ColourSchemeI getInstance(AnnotatedCollectionI sg,
Map<SequenceI, SequenceCollectionI> hiddenRepSequences);
/**
* @return
*/
String getSchemeName();
+
+ /**
+ * Answers true if the colour scheme depends only on the sequence symbol, and
+ * not on other information such as alignment consensus or annotation. (Note
+ * that simple colour schemes may have a fading by percentage identity or
+ * conservation overlaid.) Simple colour schemes can be propagated to
+ * structure viewers.
+ *
+ * @return
+ */
+ boolean isSimple();
}