Class AutoScrollDragMode
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
-
- All Implemented Interfaces:
IDragMode
- Direct Known Subclasses:
CellSelectionDragMode
,ColumnReorderDragMode
,FillHandleDragMode
,RowReorderDragMode
public abstract class AutoScrollDragMode extends Object implements IDragMode
AbstractIDragMode
implementation to support auto-scrolling on dragging.- Since:
- 1.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AutoScrollDragMode.AutoScrollRunnable
Runnable that continuously scrolls the viewport.
-
Field Summary
Fields Modifier and Type Field Description protected int
horizontalBorderOffset
protected int
verticalBorderOffset
-
Constructor Summary
Constructors Constructor Description AutoScrollDragMode(boolean horizontal, boolean vertical)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseMove(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
void
mouseUp(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
protected void
performDragAction(NatTable natTable, int x, int y, SelectionLayer.MoveDirectionEnum horizontal, SelectionLayer.MoveDirectionEnum vertical)
-
-
-
Method Detail
-
mouseMove
public void mouseMove(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
-
mouseUp
public void mouseUp(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
-
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.
-
-