Class ColumnHeaderCheckBoxPainter

All Implemented Interfaces:
ICellPainter

public class ColumnHeaderCheckBoxPainter extends ImagePainter
  • Constructor Details

    • ColumnHeaderCheckBoxPainter

      public ColumnHeaderCheckBoxPainter(IUniqueIndexLayer columnDataLayer)
    • ColumnHeaderCheckBoxPainter

      public ColumnHeaderCheckBoxPainter(IUniqueIndexLayer columnLayer, org.eclipse.swt.graphics.Image checkedImg, org.eclipse.swt.graphics.Image semicheckedImage, org.eclipse.swt.graphics.Image uncheckedImg)
  • Method Details

    • getPreferredWidth

      public int getPreferredWidth(boolean checked)
    • getPreferredHeight

      public int getPreferredHeight(boolean checked)
    • paintIconImage

      public void paintIconImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, int yOffset, boolean checked)
    • getImage

      public org.eclipse.swt.graphics.Image getImage(boolean checked)
    • getImage

      protected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
      Overrides:
      getImage in class ImagePainter
      Parameters:
      cell - The ILayerCell for which this ImagePainter is called.
      configRegistry - The current IConfigRegistry to retrieve the cell style information from.
      Returns:
      The Image that should be painted by this ImagePainter.
    • getCheckedCellsCount

      public int getCheckedCellsCount(int columnPosition, IConfigRegistry configRegistry)
    • isChecked

      protected boolean isChecked(ILayerCell cell, IConfigRegistry configRegistry)
    • convertDataType

      protected Boolean convertDataType(ILayerCell cell, IConfigRegistry configRegistry)