JAL-1492 JAL-1397 JAL-643 JAL-969 factory method to clone and apply colour scheme...
[jalview.git] / src / jalview / schemes / ClustalxColourScheme.java
index e79676f..77d7e5b 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
+ * Copyright (C) 2014 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -14,6 +14,7 @@
  * PURPOSE.  See the GNU General Public License for more details.
  * 
  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
 package jalview.schemes;
 
@@ -326,6 +327,14 @@ public class ClustalxColourScheme extends ResidueColourScheme // implements
   {
     this.includeGaps = includeGaps;
   }
+  @Override
+  public ColourSchemeI applyTo(AnnotatedCollectionI sg,
+          Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+  {
+    ClustalxColourScheme css= new ClustalxColourScheme(sg, hiddenRepSequences);
+    css.includeGaps = includeGaps;
+    return css;
+  }
 }
 
 class ConsensusColour