Class GssFunctions.BaseBlendColors

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseBlendColors()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String blend​(java.lang.String startColor, java.lang.String endColor)  
      java.util.List<CssValueNode> getCallResultNodes​(java.util.List<CssValueNode> args, ErrorManager errorManager)
      Returns the string representation in hex format for a color half way in between the two supplied colors.
      java.lang.String getCallResultString​(java.util.List<java.lang.String> args)
      Processes a list of strings as function arguments and returns a string result.
      java.lang.Integer getNumExpectedArguments()
      Returns the number of expected arguments of this GSS function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseBlendColors

        public BaseBlendColors()
    • Method Detail

      • getNumExpectedArguments

        public java.lang.Integer getNumExpectedArguments()
        Returns the number of expected arguments of this GSS function.
        Specified by:
        getNumExpectedArguments in interface GssFunction
        Returns:
        Number of expected arguments
      • getCallResultNodes

        public java.util.List<CssValueNode> getCallResultNodes​(java.util.List<CssValueNode> args,
                                                               ErrorManager errorManager)
        Returns the string representation in hex format for a color half way in between the two supplied colors.
        Specified by:
        getCallResultNodes in interface GssFunction
        Parameters:
        args - The list of arguments
        Returns:
        The computed color
      • blend

        public abstract java.lang.String blend​(java.lang.String startColor,
                                               java.lang.String endColor)