X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FTurnColourScheme.java;h=dbf36e347e48cb3648ea7a6c67c1e59a0cf68657;hb=e8bf50102d1e937c715bf15046ae5076343313c0;hp=6d0f7aab4dfe98411407225bdc660bf6d497a663;hpb=85867b5d46751cfce6500002e098a431fec0950e;p=jalview.git diff --git a/src/jalview/schemes/TurnColourScheme.java b/src/jalview/schemes/TurnColourScheme.java index 6d0f7aa..dbf36e3 100755 --- a/src/jalview/schemes/TurnColourScheme.java +++ b/src/jalview/schemes/TurnColourScheme.java @@ -1,33 +1,52 @@ -/* Jalview - a java multiple alignment editor - * Copyright (C) 1998 Michele Clamp - * - * This program 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 2 - * of the License, or (at your option) any later version. - * - * This program 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 this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - +/* +* Jalview - A Sequence Alignment Editor and Viewer +* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle +* +* This program 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 2 +* of the License, or (at your option) any later version. +* +* This program 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 this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/ package jalview.schemes; import java.awt.*; -public class TurnColourScheme extends ScoreColourScheme { - public TurnColourScheme() { - super(ResidueProperties.turn,ResidueProperties.turnmin,ResidueProperties.turnmax); - } +/** + * DOCUMENT ME! + * + * @author $author$ + * @version $Revision$ + */ +public class TurnColourScheme extends ScoreColourScheme +{ + /** + * Creates a new TurnColourScheme object. + */ + public TurnColourScheme() + { + super(ResidueProperties.turn, ResidueProperties.turnmin, + ResidueProperties.turnmax); + } - public Color makeColour(float c) { - return new Color(c,1-c,1-c); - } + /** + * DOCUMENT ME! + * + * @param c DOCUMENT ME! + * + * @return DOCUMENT ME! + */ + public Color makeColour(float c) + { + return new Color(c, 1 - c, 1 - c); + } } -