Class LogColorMapper

java.lang.Object
org.biojava.nbio.structure.gui.util.color.ContinuousColorMapperTransform
org.biojava.nbio.structure.gui.util.color.LogColorMapper
All Implemented Interfaces:
ContinuousColorMapper

public class LogColorMapper extends ContinuousColorMapperTransform
Performs a log10 transform on input before passing the values off to another colorMapper. 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 Details

    • LogColorMapper

      public LogColorMapper(ContinuousColorMapper logspaceMapper)
      Creates a new LogColorMapper with base 10.
      Parameters:
      logspaceMapper -
    • LogColorMapper

      public LogColorMapper(ContinuousColorMapper logspaceMapper, int base)
      If logspaceMapper maps values x1 to x2, this creates a mapper for values base^x1 to base^x2
      Parameters:
      logspaceMapper - logspace mapper
      base - The base of the logorithm
  • Method Details