Package org.geotools.brewer.color
Class PaletteFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- PaletteFunction
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
public class PaletteFunction extends FunctionExpressionImpl
- Author:
- James Macgill
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description PaletteFunction()
Creates a new instance of PaletteFunctionPaletteFunction(FilterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Subclass should override, default implementation returns null.ClassificationFunction
getClassifier()
Expression
getEvaluationExpression()
int
getNumberOfClasses()
String
getPaletteName()
void
setClassifier(ClassificationFunction cf)
void
setEvaluationExpression(Expression e)
void
setFilterFactory(FilterFactory factory)
void
setNumberOfClasses(int i)
void
setPaletteName(String s)
void
setParameters(List<Expression> args)
Sets the function parameters.String
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 Detail
-
NAME
public static FunctionName NAME
-
-
Constructor Detail
-
PaletteFunction
public PaletteFunction()
Creates a new instance of PaletteFunction
-
PaletteFunction
public PaletteFunction(FilterFactory factory)
-
-
Method Detail
-
setFilterFactory
public void setFilterFactory(FilterFactory factory)
-
setParameters
public void setParameters(List<Expression> args)
Description copied from class:FunctionExpressionImpl
Sets the function parameters.- Specified by:
setParameters
in interfaceFunctionExpression
- Overrides:
setParameters
in classFunctionExpressionImpl
-
getEvaluationExpression
public Expression getEvaluationExpression()
-
setEvaluationExpression
public void setEvaluationExpression(Expression e)
-
getClassifier
public ClassificationFunction getClassifier()
-
setClassifier
public void setClassifier(ClassificationFunction cf)
-
getNumberOfClasses
public int getNumberOfClasses()
-
setNumberOfClasses
public void setNumberOfClasses(int i)
-
getPaletteName
public String getPaletteName()
-
setPaletteName
public void setPaletteName(String s)
-
evaluate
public Object evaluate(Object feature)
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
public String 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
-
-