Class DistinctHeatMap

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

public class DistinctHeatMap extends Object implements ValueHeatMap<DistinctHeatMap>
A ValueHeatMap implementation of a PivotHeatMap which identifies a cell-color based on the order in which values have previously appeared. This is a pivot-table implementation of the DBColorUtilImpl.DistinctFormatter
  • Constructor Details

    • DistinctHeatMap

      public DistinctHeatMap(@Nullable @Nullable List<Color> builderColors)
    • DistinctHeatMap

      public DistinctHeatMap(@Nullable @Nullable List<Color> builderColors, boolean clientSide)
  • Method Details

    • colorFormatValue

      public long colorFormatValue(Object value)
      Used to convert a value to an appropriate foreground and background color, based on the order in which previous values have been received
      Specified by:
      colorFormatValue in interface ValueHeatMap<DistinctHeatMap>
      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<DistinctHeatMap>
      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

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