JAL-1492 JAL-1397 JAL-643 JAL-969 factory method to clone and apply colour scheme...
[jalview.git] / src / jalview / schemes / ColourSchemeI.java
index 3f73fc9..536efe7 100755 (executable)
@@ -100,4 +100,13 @@ public interface ColourSchemeI
   public void alignmentChanged(AnnotatedCollectionI alignment,
           Map<SequenceI, SequenceCollectionI> hiddenReps);
 
+  /**
+   * create a new instance of the colourscheme configured to colour the given connection
+   * @param sg
+   * @param hiddenRepSequences
+   * @return copy of current scheme with any inherited settings transfered
+   */
+  public ColourSchemeI applyTo(AnnotatedCollectionI sg,
+          Map<SequenceI, SequenceCollectionI> hiddenRepSequences);
+
 }