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.
Version:
1.0
Author:
A. Shishlo
  • Method Summary

    Modifier and Type
    Method
    Description
    getColor(double value)
    Returns the Color corresponding the input value.
    getColor(float value)
    Returns the Color corresponding the input value.
  • Method Details

    • getColor

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

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