Class DistinctHeatMap
java.lang.Object
io.deephaven.multiviewwidget.ui.pivot.heatmap.DistinctHeatMap
- All Implemented Interfaces:
Deflatable<DistinctHeatMap>,PivotHeatMap<DistinctHeatMap>,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-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDistinctHeatMap(@Nullable List<Color> builderColors) DistinctHeatMap(@Nullable List<Color> builderColors, boolean clientSide) -
Method Summary
Modifier and TypeMethodDescriptionlongcolorFormat(PivotViewPanel panel, JTable table, Object value, int row, int col) Used within thePivotViewPanelto determine each individual pivot-cell's potential colorationlongcolorFormatValue(Object value) Used to convert a value to an appropriate foreground and background color, based on the order in which previous values have been receiveddeflate(ExportedObjectClient client) Convert this object into an Inflatable suitable for serialization.
-
Constructor Details
-
DistinctHeatMap
-
DistinctHeatMap
-
-
Method Details
-
colorFormatValue
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:
colorFormatValuein interfaceValueHeatMap<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
Description copied from interface:PivotHeatMapUsed within thePivotViewPanelto determine each individual pivot-cell's potential coloration- Specified by:
colorFormatin interfacePivotHeatMap<DistinctHeatMap>- Parameters:
panel- thePivotViewPanelwhose heatmap we currently representtable- the table currently being redrawnvalue- the contents of the cell currently being drawnrow- the row currently being drawncol- 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:DeflatableConvert this object into an Inflatable suitable for serialization.- Specified by:
deflatein interfaceDeflatable<DistinctHeatMap>- Parameters:
client- the ExportedObjectClient we are deflating for.- Returns:
- an Inflatable for serializing to the client
-