Class GrayscaleFunction

  • All Implemented Interfaces:
    Expression, Function

    public class GrayscaleFunction
    extends FunctionImpl
    Tint color function. Takes one colors and mixes it with white based on a weight (and their eventual alpha)
    Andrea Aime - GeoSolutions
    • Constructor Detail

      • GrayscaleFunction

        public GrayscaleFunction()
    • Method Detail

      • evaluate

        public Object evaluate​(Object object)
        Description copied from class: FunctionImpl
        Default implementation simply returns the fallbackValue.

        Please override this method to produce a value based on the provided arguments.

        Specified by:
        evaluate in interface Expression
        evaluate in class FunctionImpl
        object - Object being evaluated; often a Feature
        value for the provided object
      • toString

        public String toString()
        Creates a String representation of this Function with the function name and the arguments.
        toString in class FunctionImpl