Package org.geotools.styling
Class ColorReplacementImpl
- Object
-
- ColorReplacementImpl
-
- All Implemented Interfaces:
ColorReplacement
public class ColorReplacementImpl extends Object implements ColorReplacement
An implementation of ColorReplacement; this is a wrapper around an implementaiton of the "Recode" function as defined by SymbologyEncoding 1.1.- Author:
- Jody Garnett
-
-
Constructor Summary
Constructors Constructor Description ColorReplacementImpl(Function function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitorFunction
getRecoding()
Function used to perform color Replacement.void
setRecoding(Function function)
-
-
-
Constructor Detail
-
ColorReplacementImpl
public ColorReplacementImpl(Function function)
-
-
Method Detail
-
getRecoding
public Function getRecoding()
Function used to perform color Replacement.It is assumed this function is defined in accordance with the "Recode" function from Symbology Encoding 1.1.
- Specified by:
getRecoding
in interfaceColorReplacement
- Returns:
- Implementation of "Recode" function
-
accept
public Object accept(TraversingStyleVisitor visitor, Object extraData)
Description copied from interface:ColorReplacement
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceColorReplacement
- Parameters:
visitor
- the style visitor
-
setRecoding
public void setRecoding(Function function)
- Specified by:
setRecoding
in interfaceColorReplacement
- Parameters:
function
- Recoding function to use
-
-