Class GssFunctions.MakeTranslucent

  • All Implemented Interfaces:
    GssFunction
    Enclosing class:
    GssFunctions

    public static class GssFunctions.MakeTranslucent
    extends java.lang.Object
    implements GssFunction
    Takes an input color and sets its alpha component without affecting the RGB components. Usage: makeTranslucent(existingColor, alphaValue);
    • Constructor Summary

      Constructors 
      Constructor Description
      MakeTranslucent()  
    • 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)
      Processes a list of function call arguments and returns a list of CssNodes representing this call's output, which replace the input nodes in the AST.
      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 parsed arguments that this function takes, or null if the number of arguments may vary.
      protected CssValueNode makeTranslucent​(java.lang.String inputColorStr, java.lang.String alphaStr, SourceCodeLocation sourceCodeLocation)  
      • Methods inherited from class java.lang.Object

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

      • MakeTranslucent

        public MakeTranslucent()
    • Method Detail

      • getNumExpectedArguments

        public java.lang.Integer getNumExpectedArguments()
        Description copied from interface: GssFunction
        Returns the number of parsed arguments that this function takes, or null if the number of arguments may vary.
        Specified by:
        getNumExpectedArguments in interface GssFunction
      • getCallResultNodes

        public java.util.List<CssValueNode> getCallResultNodes​(java.util.List<CssValueNode> args,
                                                               ErrorManager errorManager)
        Description copied from interface: GssFunction
        Processes a list of function call arguments and returns a list of CssNodes representing this call's output, which replace the input nodes in the AST. Errors will be reported to the ErrorManager.
        Specified by:
        getCallResultNodes in interface GssFunction
      • getCallResultString

        public java.lang.String getCallResultString​(java.util.List<java.lang.String> args)
        Description copied from interface: GssFunction
        Processes a list of strings as function arguments and returns a string result. Errors are reported by throwing GssFunctionException.
        Specified by:
        getCallResultString in interface GssFunction
      • makeTranslucent

        protected CssValueNode makeTranslucent​(java.lang.String inputColorStr,
                                               java.lang.String alphaStr,
                                               @Nullable
                                               SourceCodeLocation sourceCodeLocation)