Package org.geotools.brewer.color
Class PaletteFunction
Object
ExpressionAbstract
DefaultExpression
FunctionExpressionImpl
PaletteFunction
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
- Author:
- James Macgill
-
Field Summary
FieldsFields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
Fields inherited from interface Expression
NIL
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of PaletteFunctionPaletteFunction
(FilterFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionSubclass should override, default implementation returns null.int
void
void
void
setFilterFactory
(FilterFactory factory) void
setNumberOfClasses
(int i) void
void
setParameters
(List<Expression> args) Sets the function parameters.toString()
Creates a String representation of this Function with the function name and the arguments.Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
Methods inherited from class ExpressionAbstract
evaluate
Methods inherited from interface Expression
evaluate
-
Field Details
-
NAME
-
-
Constructor Details
-
PaletteFunction
public PaletteFunction()Creates a new instance of PaletteFunction -
PaletteFunction
-
-
Method Details
-
setFilterFactory
-
setParameters
Description copied from class:FunctionExpressionImpl
Sets the function parameters.- Specified by:
setParameters
in interfaceFunctionExpression
- Overrides:
setParameters
in classFunctionExpressionImpl
-
getEvaluationExpression
-
setEvaluationExpression
-
getClassifier
-
setClassifier
-
getNumberOfClasses
public int getNumberOfClasses() -
setNumberOfClasses
public void setNumberOfClasses(int i) -
getPaletteName
-
setPaletteName
-
evaluate
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
toString
Description copied from class:FunctionExpressionImpl
Creates a String representation of this Function with the function name and the arguments. The String created should be good for most subclasses- Overrides:
toString
in classFunctionExpressionImpl
-