Class ColumnResizeDragMode

  • All Implemented Interfaces:
    IDragMode

    public class ColumnResizeDragMode
    extends Object
    implements IDragMode
    Drag mode that will implement the column resizing process.
    • Field Detail

      • columnPositionToResize

        protected int columnPositionToResize
      • originalColumnWidth

        protected int originalColumnWidth
      • startX

        protected int startX
      • currentX

        protected int currentX
      • lastX

        protected int lastX
      • gridColumnStartX

        protected int gridColumnStartX
      • checkMinimumWidth

        protected boolean checkMinimumWidth
    • Constructor Detail

      • ColumnResizeDragMode

        public ColumnResizeDragMode()
    • Method Detail

      • mouseDown

        public void mouseDown​(NatTable natTable,
                              org.eclipse.swt.events.MouseEvent event)
        Specified by:
        mouseDown in interface IDragMode
      • mouseMove

        public void mouseMove​(NatTable natTable,
                              org.eclipse.swt.events.MouseEvent event)
        Specified by:
        mouseMove in interface IDragMode
      • mouseUp

        public void mouseUp​(NatTable natTable,
                            org.eclipse.swt.events.MouseEvent event)
        Specified by:
        mouseUp in interface IDragMode
      • getColumnWidthMinimum

        protected int getColumnWidthMinimum()
        Since:
        1.3