public void collectState(JTable table, boolean isSelected, boolean hasFocus, int row, int column) {
    clear();
    mySelected = isSelected;
    myFont = table.getFont();
    myForeground = getSelectionForeground(table, isSelected);
    myBackground = RenderingUtil.getBackground(table, isSelected);
    myCellBorder = getBorder(isSelected, hasFocus);
  }
public void collectState(JTable table, boolean isSelected, boolean hasFocus, int row, int column)