Class AutoScrollDragMode
java.lang.Object
org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
- All Implemented Interfaces:
IDragMode
- Direct Known Subclasses:
CellSelectionDragMode,ColumnReorderDragMode,FillHandleDragMode,RowReorderDragMode
Abstract
IDragMode implementation to support auto-scrolling on
dragging.- Since:
- 1.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classRunnable that continuously scrolls the viewport. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidperformDragAction(NatTable natTable, int x, int y, SelectionLayer.MoveDirectionEnum horizontal, SelectionLayer.MoveDirectionEnum vertical)
-
Field Details
-
horizontalBorderOffset
protected int horizontalBorderOffset -
verticalBorderOffset
protected int verticalBorderOffset- Since:
- 2.0
-
-
Constructor Details
-
AutoScrollDragMode
public AutoScrollDragMode(boolean horizontal, boolean vertical) - Parameters:
horizontal-trueto support horizontal auto-scrolling.vertical-trueto support vertical auto-scrolling.
-
-
Method Details
-
mouseMove
-
mouseUp
-
performDragAction
protected void performDragAction(NatTable natTable, int x, int y, SelectionLayer.MoveDirectionEnum horizontal, SelectionLayer.MoveDirectionEnum vertical) - Parameters:
natTable- The NatTable instance the drag operation is currently performed on.x- The x coordinate of the mouse pointer on mouse move. Corrected to be inside the NatTable client area.y- The y coordinate of the mouse pointer on mouse move. Corrected to be inside the NatTable client area.horizontal- The horizontal direction where the auto-scroll should be performed to.vertical- The vertical direction where the auto-scroll should be performed to.
-