Class CellHighlighterRenderer

java.lang.Object
no.uib.jsparklines.extra.CellHighlighterRenderer
All Implemented Interfaces:
TableCellRenderer

public class CellHighlighterRenderer
extends Object
implements TableCellRenderer
Table cell render highlighting columns ending with a given string, by using a different background color. Supported input: String objects. Other object types are rendered using the DefaultTableCellRenderer.
Author:
Harald Barsnes
  • Constructor Details

    • CellHighlighterRenderer

      public CellHighlighterRenderer​(Color backgroundColor, Color highlightColor, int align, String highlightLabel)
      Creates a new CellHighlighterRenderer.
      Parameters:
      backgroundColor - default background color
      highlightColor - highlight background color
      align - SwingConstant: LEFT, CENTER, RIGHT, LEADING or TRAILING.
      highlightLabel - the label the strings have to end with in order to be highlighted
  • Method Details