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
defaultdoublegetLogValue(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
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