public abstract class ContinuousColorMapperTransform extends Object implements ContinuousColorMapper
Modifier and Type | Field and Description |
---|---|
protected ContinuousColorMapper |
mapper |
Constructor and Description |
---|
ContinuousColorMapperTransform(ContinuousColorMapper submapper)
Creates a transform.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor(double value)
Return the color corresponding to submapper.getColor(transform(value)).
|
abstract double |
transform(double value)
An arbitrary transform over reals
|
protected ContinuousColorMapper mapper
public ContinuousColorMapperTransform(ContinuousColorMapper submapper)
submapper
- A color mapper which acts on the transformed input value.public Color getColor(double value)
getColor
in interface ContinuousColorMapper
value
- Value to be mappedContinuousColorMapper.getColor(double)
public abstract double transform(double value)
the
- input valueCopyright © 2000–2016 BioJava. All rights reserved.