/** * This is similar to the other paste, but take range as a parameter. This is used together with * getRange. * * @param table SharpTableModel you are pasting to * @param range range you are pasting to */ public void paste(SpreadsheetTableModelClipboardInterface table, CellRange range) { // if region to paste to is out of bounds if (range != null) { int rowOff = range.getStartRow() - source.getStartRow(); int colOff = range.getStartCol() - source.getStartCol(); table.fromString(text, '\t', rowOff, colOff, range); } }