Class GssFunctions.Spin
- java.lang.Object
-
- com.google.common.css.compiler.gssfunctions.GssFunctions.BaseHslColorManipulation
-
- com.google.common.css.compiler.gssfunctions.GssFunctions.Spin
-
- All Implemented Interfaces:
GssFunction
- Enclosing class:
- GssFunctions
public static class GssFunctions.Spin extends GssFunctions.BaseHslColorManipulation implements GssFunction
Increase or decrease the hue of a color. First argument is the color, second is the hue to add or remove, between 0 and 360. It's like rotating the color on a color wheel and hue is the angle to apply.
-
-
Constructor Summary
Constructors Constructor Description Spin()
-
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.StringgetCallResultString(java.util.List<java.lang.String> args)Processes a list of strings as function arguments and returns a string result.java.lang.IntegergetNumExpectedArguments()Returns the number of parsed arguments that this function takes, ornullif the number of arguments may vary.-
Methods inherited from class com.google.common.css.compiler.gssfunctions.GssFunctions.BaseHslColorManipulation
addHslToCssColor, addHslToCssColor
-
-
-
-
Method Detail
-
getNumExpectedArguments
public java.lang.Integer getNumExpectedArguments()
Description copied from interface:GssFunctionReturns the number of parsed arguments that this function takes, ornullif the number of arguments may vary.- Specified by:
getNumExpectedArgumentsin interfaceGssFunction
-
getCallResultNodes
public java.util.List<CssValueNode> getCallResultNodes(java.util.List<CssValueNode> args, ErrorManager errorManager) throws GssFunctionException
Description copied from interface:GssFunctionProcesses 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:
getCallResultNodesin interfaceGssFunction- Throws:
GssFunctionException
-
getCallResultString
public java.lang.String getCallResultString(java.util.List<java.lang.String> args) throws GssFunctionExceptionDescription copied from interface:GssFunctionProcesses a list of strings as function arguments and returns a string result. Errors are reported by throwingGssFunctionException.- Specified by:
getCallResultStringin interfaceGssFunction- Throws:
GssFunctionException
-
-