T
- Data type of input values.public abstract class AbstractColorMapper<T extends Number> extends Object implements ColorMapper, Serializable
ColorMapper.Mode
Constructor and Description |
---|
AbstractColorMapper()
Initializes a new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
applyMode(T value,
T rangeMin,
T rangeMax)
Transforms a value outside of the mapping range.
|
ColorMapper.Mode |
getMode()
Returns how values outside of the mapping range will be handled.
|
protected void |
setMode(ColorMapper.Mode mode)
Sets how values outside of the mapping range will be handled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public AbstractColorMapper()
public ColorMapper.Mode getMode()
getMode
in interface ColorMapper
protected void setMode(ColorMapper.Mode mode)
mode
- Handling of values outside of the mapping range.protected abstract T applyMode(T value, T rangeMin, T rangeMax)
value
- Value to be handled.rangeMin
- Lower bounds of rangerangeMax
- Upper bounds of rangeCopyright © 2009-2013. All Rights Reserved.