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 Details

    • ColorReplacementImpl

      public ColorReplacementImpl(Function function)
  • Method Details

    • 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(TraversingStyleVisitor 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)
      Specified by:
      setRecoding in interface ColorReplacement
      Parameters:
      function - Recoding function to use