Class AbstractHSLFunction
Object
ExpressionAbstract
FunctionImpl
AbstractHSLFunction
- All Implemented Interfaces:
Expression,Function
- Direct Known Subclasses:
DarkenFunction,DesaturateFunction,LightenFunction,SaturateFunction
Base for lesscss.org HSL color manipulation functions
- Author:
- Andrea Aime - GeoSolutions
-
Field Summary
FieldsFields inherited from class FunctionImpl
functionNameFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidadjustAbsolute(float amount, HSLColor hsl) protected abstract voidadjustRelative(float amount, HSLColor hsl) Default implementation simply returns the fallbackValue.toString()Creates a String representation of this Function with the function name and the arguments.Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParametersMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
evaluate
-
Field Details
-
NAME
-
-
Constructor Details
-
AbstractHSLFunction
-
-
Method Details
-
evaluate
Description copied from class:FunctionImplDefault implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments.
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionImpl- Parameters:
object- Object being evaluated; often a Feature- Returns:
- value for the provided object
-
adjustRelative
-
adjustAbsolute
-
toString
Creates a String representation of this Function with the function name and the arguments.- Overrides:
toStringin classFunctionImpl
-