JAL-98 ProfilesI container for profiles for columns
[jalview.git] / src / jalview / schemes / FollowerColourScheme.java
index 32e9316..35be31b 100644 (file)
@@ -1,13 +1,33 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * 
+ * This file is part of Jalview.
+ * 
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * 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;
 
 import jalview.analysis.Conservation;
-
-import java.util.Hashtable;
+import jalview.datamodel.ProfilesI;
 
 /**
  * Colourscheme that takes its colours from some other colourscheme
+ * 
  * @author jimp
- *
+ * 
  */
 public class FollowerColourScheme extends ResidueColourScheme
 {
@@ -20,9 +40,9 @@ public class FollowerColourScheme extends ResidueColourScheme
   }
 
   @Override
-  public void setConsensus(Hashtable[] consensus)
+  public void setConsensus(ProfilesI consensus)
   {
-    if (colourScheme!=null)
+    if (colourScheme != null)
     {
       colourScheme.setConsensus(consensus);
     }
@@ -31,7 +51,7 @@ public class FollowerColourScheme extends ResidueColourScheme
   @Override
   public void setConservation(Conservation cons)
   {
-    if (colourScheme!=null)
+    if (colourScheme != null)
     {
       colourScheme.setConservation(cons);
     }
@@ -40,7 +60,7 @@ public class FollowerColourScheme extends ResidueColourScheme
   @Override
   public void setConservationInc(int i)
   {
-    if (colourScheme!=null)
+    if (colourScheme != null)
     {
       colourScheme.setConservationInc(i);
     }