Interface ResultMatrix.StyledCell
- All Superinterfaces:
ResultMatrix.Cell
,Serializable
- All Known Subinterfaces:
ResultMatrix.StyledCell
- All Known Implementing Classes:
ResultMatrix.ResultMatrixStyledCell
- Enclosing interface:
ResultMatrix
-
Method Summary
Modifier and TypeMethodDescriptionwithAlignment
(String alignment) Specify the alignment of the cellwithBackground
(String bgColor) Set the background color of the cellSet the foreground color of the value fontApply any other valid CSS instructions to the cellwithFontWeight
(String fontWeight) Set the font weight (in standard CSS terms) of the value textwithFormatting
(String formatting) Set the regular expression formatting of the cell.withToolTip
(String tooltip) Show a tooltip text in the cell
-
Method Details
-
withColor
Set the foreground color of the value font- Parameters:
color
-- Returns:
-
withBackground
Set the background color of the cell- Parameters:
bgColor
-- Returns:
-
withFontWeight
Set the font weight (in standard CSS terms) of the value text- Parameters:
fontWeight
-- Returns:
-
withAlignment
Specify the alignment of the cell- Parameters:
alignment
-- Returns:
-
withToolTip
Show a tooltip text in the cell- Parameters:
tooltip
-- Returns:
-
withCSS
Apply any other valid CSS instructions to the cell- Parameters:
extraCSS
-- Returns:
-
withFormatting
Set the regular expression formatting of the cell. For instance: '▲ {}%' use icon ▲ as a prefix, % sign as a suffix and the {} will be substituted with a value.
Note: keeping a value separate from the display text allows tools such as Actionable Insight or the AI Assistant to have direct access to the data, without the need to guess what should be filtered out.- Parameters:
formatting
-- Returns:
-