Class DiscreteColorMap

  • All Implemented Interfaces:
    Serializable

    public class DiscreteColorMap
    extends ColorMap
    A Colormap that can provide colors for a discrete number of values (i.e. a limited well defined number of items) The values can be anything comparable, as long as they are of the same type.
    Author:
    Thomas Pfau
    See Also:
    Serialized Form
    • Constructor Detail

      • DiscreteColorMap

        public DiscreteColorMap​(Collection<Comparable> values,
                                ColorScale cs)
        Generate a Colormap based on a set of values and a given colorscale. The Values will be used in the order provided by the collection iterator. The map will only provide valid colors for the values provided during setup.
        Parameters:
        values - the discrete values to use
        cs - The ColorScale to use