JAL-2360 ColourSchemes holds configured schemes, AlignFrame colour menu
[jalview.git] / src / jalview / schemes / ColourSchemeI.java
index f2e888e..be8793b 100755 (executable)
@@ -130,13 +130,15 @@ public interface ColourSchemeI
 
   /**
    * 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);
 
   /**