public abstract class AbstractContrastMethodStrategy extends Object implements ContrastMethodStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM
ALGORITHM
|
protected FilterFactory |
filterFactory |
protected ContrastMethod |
method |
| Constructor and Description |
|---|
AbstractContrastMethodStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(String key,
Expression value)
Add a VendorOption that controls how this strategy operates.
|
void |
addParameter(String key,
Expression value)
A parameter to be used by this method.
|
Expression |
getAlgorithm()
Find out the algorithm used by this method.
|
FilterFactory |
getFilterFactory()
Fetch the filter factory used by the method.
|
ContrastMethod |
getMethod()
Get the constant that defines the method that this strategy uses.
|
Map<String,Expression> |
getOptions()
The map of VendorOptions to write into an SLD or CSS file.
|
Map<String,Expression> |
getParameters()
Fetch any parameters which control the method.
|
String |
name()
the name of the ContrastMethod Currently one of Normalize, Histogram, Exponential &
Logarithmic
More methods may be added in future releases.
|
void |
setAlgorithm(Expression name)
The algorithm to be used by this method.
|
void |
setMethod(ContrastMethod method)
Set the constant that defines the method that this strategy uses.
|
void |
setOptions(Map<String,Expression> options)
set the map of VendorOptions to control this method.
|
public static final String ALGORITHM
protected FilterFactory filterFactory
protected ContrastMethod method
public void setOptions(Map<String,Expression> options)
setOptions in interface ContrastMethodStrategyoptions - a map of Expressions keyed by name.public Expression getAlgorithm()
public Map<String,Expression> getParameters()
Note this does not contain the algorithm value.
public String name()
More methods may be added in future releases.
public FilterFactory getFilterFactory()
public void addParameter(String key, Expression value)
key - the name of the parametervalue - the expression that is it's value.public void setAlgorithm(Expression name)
name - the expression that evaluates to the algorithm name.public Map<String,Expression> getOptions()
getOptions in interface ContrastMethodStrategypublic ContrastMethod getMethod()
ContrastMethodStrategygetMethod in interface ContrastMethodStrategypublic void addOption(String key, Expression value)
ContrastMethodStrategyaddOption in interface ContrastMethodStrategykey - the name of the Vendor Optionvalue - an expression that evaluates to the value of the option.public void setMethod(ContrastMethod method)
ContrastMethodStrategysetMethod in interface ContrastMethodStrategymethod - the method to setCopyright © 1996–2019 Geotools. All rights reserved.