org.opengis.style
Interface ColorReplacement

All Known Subinterfaces:
ColorReplacement
All Known Implementing Classes:
ColorReplacementImpl

@XmlElement(value="ColorReplacement")
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 in Interpolate .

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 Function getRecoding()
          Recoding: Transformation of discrete values to any other values.
 

Method Detail

getRecoding

@XmlElement(value="Recode")
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

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.