Class GssFunctions.MakeMutedColor

  • All Implemented Interfaces:
    GssFunction
    Enclosing class:
    GssFunctions

    public static class GssFunctions.MakeMutedColor
    extends java.lang.Object
    implements GssFunction
    Implementation of the makeMutedColor GSS function. This is intended to generate a muted flavor of a text or link color. Takes three arguments: the background color over which this text or link will appear, and the text or link color this should be a muted version of and optionally the loss of saturation for muted tone (0 <= loss <= 1).
    • Constructor Summary

      Constructors 
      Constructor Description
      MakeMutedColor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<CssValueNode> getCallResultNodes​(java.util.List<CssValueNode> args, ErrorManager errorManager)
      Returns the muted color corresponding to the arguments documented in GssFunctions.MakeMutedColor.
      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.
      protected java.lang.String makeMutedColor​(java.lang.String backgroundColorStr, java.lang.String foregroundColorStr)  
      protected java.lang.String makeMutedColor​(java.lang.String backgroundColorStr, java.lang.String foregroundColorStr, java.lang.String lossStr)  
      • Methods inherited from class java.lang.Object

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

      • MakeMutedColor

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

        protected java.lang.String makeMutedColor​(java.lang.String backgroundColorStr,
                                                  java.lang.String foregroundColorStr,
                                                  java.lang.String lossStr)
      • makeMutedColor

        protected java.lang.String makeMutedColor​(java.lang.String backgroundColorStr,
                                                  java.lang.String foregroundColorStr)