import java.awt.Color;
/**
- * DOCUMENT ME!
- *
- * @author $author$
- * @version $Revision$
+ * A graduated colour scheme based on residue buried index score
*/
public class BuriedColourScheme extends ScoreColourScheme
{
- /**
- * Creates a new BuriedColourScheme object.
- */
- public BuriedColourScheme()
- {
- super(ResidueProperties.aaIndex, ResidueProperties.buried);
- }
+ private static final Color minScoreColour = new Color(0, 255, 0);
+
+ private static final Color maxScoreColour = new Color(0, 0, 255);
/**
- * DOCUMENT ME!
- *
- * @param c
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
+ * Constructor
*/
- @Override
- public Color makeColour(float c)
+ public BuriedColourScheme()
{
- return new Color(0, (float) (1.0 - c), c);
+ super(JalviewColourScheme.Buried.toString(), ResidueProperties.aaIndex,
+ ResidueProperties.buried, minScoreColour, maxScoreColour);
}
@Override
return true;
}
- @Override
- public String getSchemeName()
- {
- return JalviewColourScheme.Buried.toString();
- }
-
/**
* Returns a new instance of this colour scheme with which the given data may
* be coloured