Class ConstrastFunction

  • All Implemented Interfaces:
    Expression, Function

    public class ConstrastFunction
    extends FunctionImpl
    Contrast lesscss.org color function. Returns the color with highest contrast with a given reference
    Author:
    Andrea Aime - GeoSolutions
    • Constructor Detail

      • ConstrastFunction

        public ConstrastFunction()
    • 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
        Overrides:
        evaluate in class FunctionImpl
        Parameters:
        object - Object being evaluated; often a Feature
        Returns:
        value for the provided object
      • toString

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