Class HeatMap


  • public class HeatMap
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HeatMap()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Color get2ColorGradientHeatMapColor​(double intensity, java.awt.Color cold, java.awt.Color hot)
      Returns a heat map color for the given intensity (range 0.0 to 1.0)
      static java.awt.Color getBlueRedGradientHeatMapColor​(double intensity)
      Returns a heat map color for the given intensity (range 0.0 to 1.0) Blue represents cold (0.0 intensity) and Red represents hot (1.0 intensity)
      static java.awt.Color getInvertedMonochromeHeatMapColor​(double intensity)
      Returns a heat map color for the given intensity (range 0.0 to 1.0) White represents cold (0.0 intensity) and Black represents hot (1.0 intensity)
      static java.awt.Color getMonochromeHeatMapColor​(double intensity)
      Returns a heat map color for the given intensity (range 0.0 to 1.0) Black represents cold (0.0 intensity) and White represents hot (1.0 intensity)
      static double normalizeIntensity​(long value, long minValue, long maxValue)
      Given the lower bound, upper bound, and actual value, normalize the actual value to a value between 0.0 and 1.0
      static double normalizeLogarithmicIntensity​(java.lang.Long value, long minValue, long maxValue)
      Given the lower bound, upper bound, and actual value, normalize the actual value to a log base 10 value between 0.0 and 1.0
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HeatMap

        public HeatMap()
    • Method Detail

      • getMonochromeHeatMapColor

        public static java.awt.Color getMonochromeHeatMapColor​(double intensity)
        Returns a heat map color for the given intensity (range 0.0 to 1.0) Black represents cold (0.0 intensity) and White represents hot (1.0 intensity)
        Parameters:
        intensity -
        Returns:
      • getInvertedMonochromeHeatMapColor

        public static java.awt.Color getInvertedMonochromeHeatMapColor​(double intensity)
        Returns a heat map color for the given intensity (range 0.0 to 1.0) White represents cold (0.0 intensity) and Black represents hot (1.0 intensity)
        Parameters:
        intensity -
        Returns:
      • getBlueRedGradientHeatMapColor

        public static java.awt.Color getBlueRedGradientHeatMapColor​(double intensity)
        Returns a heat map color for the given intensity (range 0.0 to 1.0) Blue represents cold (0.0 intensity) and Red represents hot (1.0 intensity)
        Parameters:
        intensity -
        Returns:
      • get2ColorGradientHeatMapColor

        public static java.awt.Color get2ColorGradientHeatMapColor​(double intensity,
                                                                   java.awt.Color cold,
                                                                   java.awt.Color hot)
        Returns a heat map color for the given intensity (range 0.0 to 1.0)
        Parameters:
        intensity -
        cold - The color to represent intensity 0.0
        hot - The color to represent intensity 1.0
        Returns:
      • normalizeIntensity

        public static double normalizeIntensity​(long value,
                                                long minValue,
                                                long maxValue)
        Given the lower bound, upper bound, and actual value, normalize the actual value to a value between 0.0 and 1.0
        Parameters:
        value -
        minValue -
        maxValue -
        Returns:
      • normalizeLogarithmicIntensity

        public static double normalizeLogarithmicIntensity​(java.lang.Long value,
                                                           long minValue,
                                                           long maxValue)
        Given the lower bound, upper bound, and actual value, normalize the actual value to a log base 10 value between 0.0 and 1.0
        Parameters:
        value -
        minValue -
        maxValue -
        Returns: