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 FunctionNameNAME-
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 Objectevaluate(Object feature)Subclass should override, default implementation returns null.ClassificationFunctiongetClassifier()ExpressiongetEvaluationExpression()intgetNumberOfClasses()StringgetPaletteName()voidsetClassifier(ClassificationFunction cf)voidsetEvaluationExpression(Expression e)voidsetFilterFactory(FilterFactory factory)voidsetNumberOfClasses(int i)voidsetPaletteName(String s)voidsetParameters(List<Expression> args)Sets the function parameters.StringtoString()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:FunctionExpressionImplSets the function parameters.- Specified by:
setParametersin interfaceFunctionExpression- Overrides:
setParametersin 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:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionExpressionImpl- Returns:
- default implementation returns null
-
toString
public String toString()
Description copied from class:FunctionExpressionImplCreates a String representation of this Function with the function name and the arguments. The String created should be good for most subclasses- Overrides:
toStringin classFunctionExpressionImpl
-
-