X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FFollowerColourScheme.java;h=35be31b082dda8486fdeabbd57b18f980d639dca;hb=9ecc7ec6a4eb1d0713c2c050a79c5b04c2092309;hp=32e9316af337f255301a655f16ad482ae149daf7;hpb=0416a98d6da9e0fbe42a9676d4ef30c234cb7b12;p=jalview.git diff --git a/src/jalview/schemes/FollowerColourScheme.java b/src/jalview/schemes/FollowerColourScheme.java index 32e9316..35be31b 100644 --- a/src/jalview/schemes/FollowerColourScheme.java +++ b/src/jalview/schemes/FollowerColourScheme.java @@ -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 . + * 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); }