com.orsoncharts.renderer

## Interface ColorScale

- All Known Implementing Classes:
    FixedColorScale, GradientColorScale, RainbowScale

      public interface ColorScale

  A color scale converts a data value into a color according to some predefined color scale.
  Since:
    1.1

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Range` | `getRange()` Returns the range over which the scale is defined.
    `java.awt.Color` | `valueToColor(double value)` Returns the color on the scale that corresponds to the specified value.

- - ### Method Detail

    - #### getRange

          Range getRange()

      Returns the range over which the scale is defined.
      Returns:
        The range (never `null`).

    - #### valueToColor

          java.awt.Color valueToColor(double value)

      Returns the color on the scale that corresponds to the specified value.
      Parameters:
        `value` - the value.
      Returns:
        The color (never `null`).