Class RGBICCColorFunction

  • All Implemented Interfaces:
    Function

    class RGBICCColorFunction
    extends FunctionBase
    Implements the rgb-icc() function.
    • Field Detail

      • colors

        private int colors
    • Constructor Detail

      • RGBICCColorFunction

        public RGBICCColorFunction​(boolean fox)
    • Method Detail

      • getRequiredArgsCount

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

        public boolean hasVariableArgs()
        Description copied from class: FunctionBase
        Determine if function allows variable arguments. If it does, then they must appear after required and optional arguments, and all optional arguments must be specified.
        Specified by:
        hasVariableArgs in interface Function
        Overrides:
        hasVariableArgs in class FunctionBase
        Returns:
        true if function permits additional variable number of arguments after required and (completely specified) optional arguments
      • 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