Class ArffTableCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class ArffTableCellRenderer extends DefaultTableCellRenderer
Handles the background colors for missing values differently than the DefaultTableCellRenderer.
Version:
$Revision: 8034 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • ArffTableCellRenderer

      public ArffTableCellRenderer()
      initializes the Renderer with a standard color
    • ArffTableCellRenderer

      public ArffTableCellRenderer(Color missingColor, Color missingColorSelected)
      initializes the Renderer with the given colors
      Parameters:
      missingColor - the color for missing values
      missingColorSelected - the color selected missing values
    • ArffTableCellRenderer

      public ArffTableCellRenderer(Color missingColor, Color missingColorSelected, Color highlightColor, Color highlightColorSelected)
      initializes the Renderer with the given colors
      Parameters:
      missingColor - the color for missing values
      missingColorSelected - the color selected missing values
      highlightColor - the color for highlighted values
      highlightColorSelected - the color selected highlighted values
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Returns the default table cell renderer. stuff for the header is taken from here
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Overrides:
      getTableCellRendererComponent in class DefaultTableCellRenderer
      Parameters:
      table - the table this object belongs to
      value - the actual cell value
      isSelected - whether the cell is selected
      hasFocus - whether the cell has the focus
      row - the row in the table
      column - the column in the table
      Returns:
      the rendering component