Class ContinuousColorMapperTransform

  • All Implemented Interfaces:
    ContinuousColorMapper
    Direct Known Subclasses:
    LogColorMapper, SqrtColorMapper

    public abstract class ContinuousColorMapperTransform
    extends java.lang.Object
    implements ContinuousColorMapper
    Maps colors by performing a transform of the input data and then passing the transformed value to a ContinuousColorMapper for rendering. For instance, to map [10^0, 10^10] to a rainbow gradient, use new LogColorMapper(GradientMapper.getGradientMapper(GradientMapper.RAINBOW_GRADIENT, 0, 10))
    Author:
    Spencer Bliven
    • Constructor Detail

      • ContinuousColorMapperTransform

        public ContinuousColorMapperTransform​(ContinuousColorMapper submapper)
        Creates a transform.
        Parameters:
        submapper - A color mapper which acts on the transformed input value.
    • Method Detail

      • transform

        public abstract double transform​(double value)
        An arbitrary transform over reals
        Parameters:
        the - input value
        Returns:
        the transformed value