public void remove(GeoElement geo) {
   GPoint location = geo.getSpreadsheetCoords();
   if (location != null) {
     doRemove(geo, location.y, location.x);
     cellRangeManager.updateCellRangeAlgos(geo, location, true);
   }
 }
  public void clearView() {

    for (int c = 0; c < getColumnCount(); ++c) {
      for (int r = 0; r < getRowCount(); ++r) {
        setValueAt(null, r, c);
      }
    }
    highestUsedColumn = -1;
    highestUsedRow = -1;
    cellRangeManager.removeAll();
  }
 private void addToCellRangeAlgos(GeoElement geo) {
   GPoint location = geo.getSpreadsheetCoords();
   if (location != null) {
     cellRangeManager.addToCellRangeAlgos(geo, location);
   }
 }