Class ValuesHeatMap

java.lang.Object
io.deephaven.multiviewwidget.ui.pivot.heatmap.ValuesHeatMap
All Implemented Interfaces:
Deflatable<ValuesHeatMap>, PivotHeatMap<ValuesHeatMap>, ValueHeatMap<ValuesHeatMap>

public class ValuesHeatMap extends Object implements ValueHeatMap<ValuesHeatMap>
A ValueHeatMap implementation of a PivotHeatMap which identifies a cell-color based on a builder-defined value to color mapping
  • Constructor Details

  • Method Details

    • colorFormatValue

      public long colorFormatValue(Object value)
      Used to convert a value to an appropriate foreground and background color, based on the value
      Specified by:
      colorFormatValue in interface ValueHeatMap<ValuesHeatMap>
      Parameters:
      value - a value used to identify the desire cell-color
      Returns:
      a value representing the desired foreground and background colors of the cell being drawn
    • colorFormat

      public long colorFormat(PivotViewPanel panel, JTable table, Object value, int row, int col)
      Description copied from interface: PivotHeatMap
      Used within the PivotViewPanel to determine each individual pivot-cell's potential coloration
      Specified by:
      colorFormat in interface PivotHeatMap<ValuesHeatMap>
      Parameters:
      panel - the PivotViewPanel whose heatmap we currently represent
      table - the table currently being redrawn
      value - the contents of the cell currently being drawn
      row - the row currently being drawn
      col - the column currently being drawn
      Returns:
      a value representing the desired foreground and background colors of the cell being drawn
    • deflate

      public Inflatable<ValuesHeatMap> deflate(ExportedObjectClient client)
      Description copied from interface: Deflatable
      Convert this object into an Inflatable suitable for serialization.
      Specified by:
      deflate in interface Deflatable<ValuesHeatMap>
      Parameters:
      client - the ExportedObjectClient we are deflating for.
      Returns:
      an Inflatable for serializing to the client