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)
  • Field Details

  • Constructor Details

    • CSSFunction

      public CSSFunction()
  • Method Details

    • 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