gov.sns.tools.plot
Interface ColorGenerator

All Known Implementing Classes:
RainbowColorGenerator

public interface ColorGenerator

This interface defines the signatures of two methods to produce the color in accordance with value between 0.0 and 1.0.


Method Summary
 java.awt.Color getColor(double value)
          Returns the Color corresponding the input value.
 java.awt.Color getColor(float value)
          Returns the Color corresponding the input value.
 

Method Detail

getColor

public java.awt.Color getColor(float value)
Returns the Color corresponding the input value. The value should be more than 0. and less than 1.0


getColor

public java.awt.Color getColor(double value)
Returns the Color corresponding the input value. The value should be more than 0. and less than 1.0