Documentation of 'de.erichseifert.gral.plots.colors.LinearGradient' Java class
LinearGradient
de.erichseifert.gral.plots.colors

Class LinearGradient

    • Constructor Detail

      • LinearGradient

        public LinearGradient(java.awt.Color color1,
                              java.awt.Color... colors)
        Creates a new instance with at least one color.
        Parameters:
        color1 - First color.
        colors - Additional colors.
    • Method Detail

      • get

        public java.awt.Paint get(double value)
        Returns the Paint according to the specified value.
        Specified by:
        get in class ContinuousColorMapper
        Parameters:
        value - Value of color.
        Returns:
        Paint.
      • setMode

        public void setMode(ColorMapper.Mode mode)
        Description copied from class: AbstractColorMapper
        Sets how values outside of the mapping range will be handled.
        Parameters:
        mode - Handling of values outside of the mapping range.
      • getColors

        public java.util.List<java.awt.Color> getColors()
        Returns the colors that are used for blending.
        Returns:
        A list of colors in the order they will be used for blending.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.