Class AutoResizeRowPaintListener

All Implemented Interfaces:
EventListener,, org.eclipse.swt.internal.SWTEventListener

public class AutoResizeRowPaintListener extends Object implements
PaintListener that is used to auto-resize rows lazily when they become visible in the viewport.
  • Constructor Details

    • AutoResizeRowPaintListener

      public AutoResizeRowPaintListener(NatTable natTable, ViewportLayer viewportLayer, ILayer bodyDataLayer)
      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( e)
      Specified by:
      paintControl in interface