use of org.eclipse.nebula.widgets.nattable.resize.command.RowResizeCommand in project nebula.widgets.nattable by eclipse.
the class RowResizeDragMode method updateRowHeight.
private void updateRowHeight(ILayer natLayer, MouseEvent e) {
int dragHeight = e.y - this.startY;
int newRowHeight = this.originalRowHeight + dragHeight;
if (newRowHeight < getRowHeightMinimum()) {
newRowHeight = getRowHeightMinimum();
}
// trigger the RowResizeCommand with downScaling enabled
// as the user performed a drag operation the newRowHeight is the value
// on the screen, which needs to be down scaled in the DataLayer
natLayer.doCommand(new RowResizeCommand(natLayer, this.gridRowPositionToResize, newRowHeight, true));
}
Aggregations