Interface ResultMatrix.StyledCell

All Superinterfaces:
ResultMatrix.Cell, Serializable
All Known Subinterfaces:
ResultMatrix.StyledCell
All Known Implementing Classes:
ResultMatrix.ResultMatrixStyledCell
Enclosing interface:
ResultMatrix

public static interface ResultMatrix.StyledCell extends ResultMatrix.Cell
  • Method Details

    • withColor

      ResultMatrix.StyledCell withColor(String color)
      Set the foreground color of the value font
      Parameters:
      color -
      Returns:
    • withBackground

      ResultMatrix.StyledCell withBackground(String bgColor)
      Set the background color of the cell
      Parameters:
      bgColor -
      Returns:
    • withFontWeight

      ResultMatrix.StyledCell withFontWeight(String fontWeight)
      Set the font weight (in standard CSS terms) of the value text
      Parameters:
      fontWeight -
      Returns:
    • withAlignment

      ResultMatrix.StyledCell withAlignment(String alignment)
      Specify the alignment of the cell
      Parameters:
      alignment -
      Returns:
    • withToolTip

      ResultMatrix.StyledCell withToolTip(String tooltip)
      Show a tooltip text in the cell
      Parameters:
      tooltip -
      Returns:
    • withCSS

      ResultMatrix.StyledCell withCSS(String extraCSS)
      Apply any other valid CSS instructions to the cell
      Parameters:
      extraCSS -
      Returns:
    • withFormatting

      ResultMatrix.StyledCell withFormatting(String formatting)
      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: