/** Clears this visualizer and its model, and forces a repaint of the table. */
 @Override
 public void clearData() {
   synchronized (lock) {
     model.clearData();
     tableRows.clear();
     tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));
     model.addRow(tableRows.get(TOTAL_ROW_LABEL));
   }
 }
 /** Clears this visualizer and its model, and forces a repaint of the table. */
 @Override
 public void clearData() {
   // Synch is needed because a clear can occur while add occurs
   synchronized (lock) {
     model.clearData();
     tableRows.clear();
     tableRows.put(TOTAL_ROW_LABEL, new Calculator(TOTAL_ROW_LABEL));
     model.addRow(tableRows.get(TOTAL_ROW_LABEL));
   }
 }