/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2008, Open Geospatial Consortium Inc.
*
* All Rights Reserved. http://www.opengis.org/legal/
*/
package org.opengis.style;
import org.opengis.annotation.Extension;
import org.opengis.annotation.XmlElement;
import org.opengis.filter.expression.Function;
/**
* 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 in {@link Interpolate} .
*
*
* @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/opengis/src/main/java/org/opengis/style/ColorReplacement.java $
* @version <A HREF="http://www.opengeospatial.org/standards/symbol">Symbology Encoding Implementation Specification 1.1.0</A>
* @author Open Geospatial Consortium
* @author Johann Sorel (Geomatys)
* @since GeoAPI 2.2
*/
@XmlElement("ColorReplacement")
public interface ColorReplacement {
/**
* 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.
*/
@XmlElement("Recode")
Function getRecoding();
/**
* calls the visit method of a StyleVisitor
*
* @param visitor the style visitor
*/
@Extension
Object accept(StyleVisitor visitor, Object extraData);
}