Interface MinMaxHeatMap<T>

All Superinterfaces:
Deflatable<T>, PivotHeatMap<T>
All Known Implementing Classes:
ByColumnHeatMap, ByRowHeatMap, TableHeatMap

public interface MinMaxHeatMap<T> extends PivotHeatMap<T>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Helper class to hold min and max values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    colorFormatMinMax(double value, double min, double max)
    Used to convert a value to an appropriate foreground and background color, based on the provided min/max
    default double
    getLogValue(double value)
    Default implementation of logarithmic-scaling.
    default double
    getTransformValue(double value, double linThresh, double linScale)
     
    static long
    heatMapGradient(double value, double min, double max, long[] bgs)
    Creates a table format encoding for the heat map at value, which may combine colors in appropriate ratio.
    static long
    heatMapSolid(double value, double min, double max, long[] colors)
    Creates a table format encoding for the heat map at value.

    Methods inherited from interface com.illumon.iris.db.tables.remote.Deflatable

    deflate

    Methods inherited from interface io.deephaven.multiviewwidget.ui.pivot.heatmap.PivotHeatMap

    colorFormat
  • Field Details

  • Method Details

    • colorFormatMinMax

      long colorFormatMinMax(double value, double min, double max)
      Used to convert a value to an appropriate foreground and background color, based on the provided min/max
      Parameters:
      value - a value used to identify the desire cell-color, based on the calculated min/max range
      min - the minimum value used to determine the range
      max - the maximum value used to determine the range
      Returns:
      a value representing the desired foreground and background colors of the cell being drawn
    • getLogValue

      default double getLogValue(double value)
      Default implementation of logarithmic-scaling.
      Acts as basic Math.log10(double) for values GTE 10
      Acts linearly as value/10 for values 10 > value > -10
      Acts as -Math.log10(-value) for values LTE -10
      Parameters:
      value - a value which shall be converted to a logarithmic-based value
      Returns:
      a logarithmic-scale representation of the value
    • getTransformValue

      default double getTransformValue(double value, double linThresh, double linScale)
    • heatMapGradient

      static long heatMapGradient(double value, double min, double max, long[] bgs)
      Creates a table format encoding for the heat map at value, which may combine colors in appropriate ratio. A contrasting foreground color is automatically chosen.
      Parameters:
      value - determines the color used by its location in the heat map's range
      min - minimum value of the heat map range
      max - maximum value of the heat map range
      bgs - array of background colors, which must be at least 2 in size. Encoded as a long
      Returns:
      table format encoding with background color and auto-generated foreground color as determined by the provided background colors
    • heatMapSolid

      static long heatMapSolid(double value, double min, double max, long[] colors)
      Creates a table format encoding for the heat map at value. A contrasting foreground color is automatically chosen.
      Parameters:
      value - determines the color used by its location in the heat map's range
      min - minimum value of the heat map range
      max - maximum value of the heat map range
      colors - array of background colors, which must be at least 2 in size. Encoded as a long
      Returns:
      table format encoded with background/foreground colors defined by colors