Class CSSFunction

  • All Implemented Interfaces:
    Expression, Function

    public class CSSFunction
    extends FunctionImpl
    Generate a Color using ColorConverterFactory, the input is expected to be a String.

    Parameters:

    1. string: string defining color
    We are using this function, rather than the default converter in order to force the use of CONVERT_CSS_TO_COLOR.
    Author:
    Jody Garnett (Boundless)
    • Constructor Detail

      • CSSFunction

        public CSSFunction()
    • 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