Class RectangleSelection.SelectionRange

  • Enclosing class:
    RectangleSelection

    public static class RectangleSelection.SelectionRange
    extends Object
    Utility class to transform a list of selected cells into a union of ranges.
    • Constructor Detail

      • SelectionRange

        public SelectionRange()
    • Method Detail

      • fill

        public void fill​(List<TablePosition> list,
                         SpreadsheetView spv)
        Construct a SelectionRange with a List of Pair where the value is the row and the value is column.
        Parameters:
        list -
        spv -
      • fillClipboardRange

        public void fillClipboardRange​(List<ClipboardCell> list)
        Fills this ClipBoardRange with a list a ClipboardCell. The result can be accessed with the getRange() method.
        Parameters:
        list - the list a ClipboardCell
      • key

        public static Long key​(int row,
                               int column)