Class RGBColorFunction

  • All Implemented Interfaces:
    Function

    class RGBColorFunction
    extends FunctionBase
    Implements the rgb() function.
    • Constructor Detail

      • RGBColorFunction

        RGBColorFunction()
    • Method Detail

      • getRequiredArgsCount

        public int getRequiredArgsCount()
        Returns:
        the number of required (non-optional) arguments that must be specified in the argument list
      • eval

        public Property eval​(Property[] args,
                             PropertyInfo pInfo)
                      throws PropertyException
        Evaluate the function
        Parameters:
        args - an array of Properties that should be evaluated
        pInfo - property information instance that applies to property being evaluated
        Returns:
        the Property satisfying the function
        Throws:
        PropertyException - for problems when evaluating the function