类 ArffTableCellRenderer

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class ArffTableCellRenderer extends DefaultTableCellRenderer
Handles the background colors for missing values differently than the DefaultTableCellRenderer.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • ArffTableCellRenderer

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

      public ArffTableCellRenderer(Color missingColor, Color missingColorSelected)
      initializes the Renderer with the given colors
      参数:
      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
      参数:
      missingColor - the color for missing values
      missingColorSelected - the color selected missing values
      highlightColor - the color for highlighted values
      highlightColorSelected - the color selected highlighted values
  • 方法详细资料

    • 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
      指定者:
      getTableCellRendererComponent 在接口中 TableCellRenderer
      覆盖:
      getTableCellRendererComponent 在类中 DefaultTableCellRenderer
      参数:
      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
      返回:
      the rendering component