org.geotools.styling
Class ColorReplacementImpl

Object
  extended by 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
ColorReplacementImpl(Function function)
           
 
Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 Function getRecoding()
          Function used to perform color Replacement.
 void setRecoding(Function function)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ColorReplacement
Returns:
Implementation of "Recode" function

accept

public Object accept(StyleVisitor visitor,
                     Object extraData)
Description copied from interface: ColorReplacement
calls the visit method of a StyleVisitor

Specified by:
accept in interface ColorReplacement
Parameters:
visitor - the style visitor

setRecoding

public void setRecoding(Function function)
Parameters:
function - Recoding function to use


Copyright © 1996-2014 Geotools. All Rights Reserved.