Package org.geotools.api.style
Interface ColorReplacement
-
- All Known Implementing Classes:
ColorReplacementImpl
public interface ColorReplacement
The ColorReplacement element, which may occur multiple times, allows to replace a color in the ExternalGraphic, the color specified in the OriginalColor sub-element, by another color as a result of a recode function as defined inInterpolate
.- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitorFunction
getRecoding()
Recoding: Transformation of discrete values to any other values.void
setRecoding(Function function)
-
-
-
Method Detail
-
getRecoding
Function getRecoding()
Recoding: Transformation of discrete values to any other values. This is needed when integers have to be translated into text or, reversely, text contents into other texts or numeric values or colors.This function recodes values from a property or expression into corresponding values of arbitrary type. The comparisons are performed checking for identical values.
-
accept
Object accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitor- Parameters:
visitor
- the style visitor
-
setRecoding
void setRecoding(Function function)
- Parameters:
function
- Recoding function to use
-
-