Class AutoResizeRowPaintListener

java.lang.Object
org.eclipse.nebula.widgets.nattable.resize.AutoResizeRowPaintListener
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.PaintListener, org.eclipse.swt.internal.SWTEventListener

public class AutoResizeRowPaintListener extends Object implements org.eclipse.swt.events.PaintListener
PaintListener that is used to auto-resize rows lazily when they become visible in the viewport.
Since:
1.6
  • Constructor Details

    • AutoResizeRowPaintListener

      public AutoResizeRowPaintListener(NatTable natTable, ViewportLayer viewportLayer, ILayer bodyDataLayer)
      Parameters:
      natTable - The NatTable to which this PaintListener is attached to. Needed to create a temporary GC and retrieve the IConfigRegistry.
      viewportLayer - The ViewportLayer to ensure that the auto row resize is only triggered for visible rows.
      bodyDataLayer - The DataLayer of the body region to inspect all columns in a row, even if not visible in the viewport.
  • Method Details

    • paintControl

      public void paintControl(org.eclipse.swt.events.PaintEvent e)
      Specified by:
      paintControl in interface org.eclipse.swt.events.PaintListener