Class ByValueHeatMapBuilder
java.lang.Object
io.deephaven.multiviewwidget.builder.heatmap.ByValueHeatMapBuilder
- All Implemented Interfaces:
PivotHeatMapBuilder,Serializable
A
PivotHeatMapBuilder which permits the query-builder to define a value to color mapping for any number of
values. If a resultant cell within the pivot-table cannot be mapped to a color, then the cell-color will be defined
by the default behavior of the table- See Also:
-
Field Summary
Fields inherited from interface io.deephaven.multiviewwidget.builder.heatmap.PivotHeatMapBuilder
defaultColors -
Constructor Summary
ConstructorsConstructorDescriptionByValueHeatMapBuilder(@NotNull List<Color> colors, @NotNull List<Object> values) Construct a new ByValueHeatMapBuilder -
Method Summary
Modifier and TypeMethodDescriptioncreateHeatMap(Table valuesTable, PivotTableState state) Converts thisPivotHeatMapBuilderinstance into aPivotHeatMapinstancelongReturns the appropriate color for the given value
-
Constructor Details
-
Method Details
-
getColor
Returns the appropriate color for the given value- Parameters:
value- an object, which may or may not have an associated color- Returns:
- the builder-defined color for the given value, or an indication that the underlying default color should be used
-
createHeatMap
Converts thisPivotHeatMapBuilderinstance into aPivotHeatMapinstance- Specified by:
createHeatMapin interfacePivotHeatMapBuilder- Parameters:
valuesTable- unused by this typestate- unused by this type- Returns:
- a new
ValuesHeatMapinstance
-