org.strbio.util
Interface ColorScale

All Known Implementing Classes:
ColorScale.BlackScale, ColorScale.BlendScale, ColorScale.BlueScale, ColorScale.GreenScale, ColorScale.RainbowScale, ColorScale.RainbowScale2, ColorScale.RedScale, ColorScale.WhiteScale

public interface ColorScale

Color scales for use in graphical programs.

  Version 1.0, 7/2/98 - original version.
  

Version:
1.0, 7/2/98
Author:
JMC

Nested Class Summary
static class ColorScale.BlackScale
          A scale going from white to black.
static class ColorScale.BlendScale
          A scale blending one color into another.
static class ColorScale.BlueScale
          A scale going from black to blue.
static class ColorScale.GreenScale
          A scale going from black to green.
static class ColorScale.RainbowScale
          A ROYGBIV scale going from R(low) to V(high)
static class ColorScale.RainbowScale2
          A ROYGBIV scale going from V(low) to R(high)
static class ColorScale.RedScale
          A scale going from black to red.
static class ColorScale.WhiteScale
          A scale going from black to white.
 
Method Summary
 java.awt.Color colorOf(double x)
          All color scales return a color corresponding to a double between 0.0 and 1.0; if the double is out of bounds, the color corresponding to the nearest endpoint of the scale should be returned.
 

Method Detail

colorOf

java.awt.Color colorOf(double x)
All color scales return a color corresponding to a double between 0.0 and 1.0; if the double is out of bounds, the color corresponding to the nearest endpoint of the scale should be returned.