Class RowSelectionEvent

    • Constructor Detail

      • RowSelectionEvent

        public RowSelectionEvent​(SelectionLayer selectionLayer,
                                 Collection<Integer> rowPositions,
                                 int rowPositionToMoveIntoViewport,
                                 boolean withShiftMask,
                                 boolean withControlMask)
        Constructor.
        Parameters:
        selectionLayer - The selection layer.
        rowPositions - The positions of the rows.
        rowPositionToMoveIntoViewport - The row position to move into the viewport.
        withShiftMask - Boolean to determinate if the shift mask is used.
        withControlMask - Boolean to determinate if the control mask is used.
        Since:
        1.4
      • RowSelectionEvent

        public RowSelectionEvent​(SelectionLayer selectionLayer,
                                 int[] rowPositions,
                                 int rowPositionToMoveIntoViewport,
                                 boolean withShiftMask,
                                 boolean withControlMask)
        Constructor.
        Parameters:
        selectionLayer - The selection layer.
        rowPositions - The positions of the rows.
        rowPositionToMoveIntoViewport - The row position to move into the viewport.
        withShiftMask - Boolean to determinate if the shift mask is used.
        withControlMask - Boolean to determinate if the control mask is used.
        Since:
        2.0
      • RowSelectionEvent

        public RowSelectionEvent​(SelectionLayer selectionLayer,
                                 Range rowPositionRange,
                                 int rowPositionToMoveIntoViewport,
                                 boolean withShiftMask,
                                 boolean withControlMask)
        Constructor.
        Parameters:
        selectionLayer - The selection layer.
        rowPositionRange - The range of row positions that where selected.
        rowPositionToMoveIntoViewport - The row position to move into the viewport.
        withShiftMask - Boolean to determinate if the shift mask is used.
        withControlMask - Boolean to determinate if the control mask is used.
        Since:
        1.6
    • Method Detail

      • getRowPositionToMoveIntoViewport

        public int getRowPositionToMoveIntoViewport()
      • isWithShiftMask

        public boolean isWithShiftMask()
        Returns if the shift mask is used.
        Returns:
        true if the shift mask is used, false otherwise.
        Since:
        1.4
      • isWithControlMask

        public boolean isWithControlMask()
        Returns if the control mask is used.
        Returns:
        true if the control mask is used, false otherwise.
        Since:
        1.4
      • convertToLocal

        public boolean convertToLocal​(ILayer localLayer)
        Description copied from interface: ILayerEvent
        Convert the column/row positions carried by the event to the layer about to handle the event.
        Specified by:
        convertToLocal in interface ILayerEvent
        Overrides:
        convertToLocal in class RowVisualChangeEvent
        Parameters:
        localLayer - layer about to receive the event
        Returns:
        TRUE if successfully converted, FALSE otherwise