Class ColumnHeaderCheckBoxPainter
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
- org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
-
- org.eclipse.nebula.widgets.nattable.painter.cell.ColumnHeaderCheckBoxPainter
-
- All Implemented Interfaces:
ICellPainter
public class ColumnHeaderCheckBoxPainter extends ImagePainter
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
calculateByHeight, calculateByWidth
-
-
Constructor Summary
Constructors Constructor Description ColumnHeaderCheckBoxPainter(IUniqueIndexLayer columnDataLayer)
ColumnHeaderCheckBoxPainter(IUniqueIndexLayer columnLayer, org.eclipse.swt.graphics.Image checkedImg, org.eclipse.swt.graphics.Image semicheckedImage, org.eclipse.swt.graphics.Image uncheckedImg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
convertDataType(ILayerCell cell, IConfigRegistry configRegistry)
int
getCheckedCellsCount(int columnPosition, IConfigRegistry configRegistry)
org.eclipse.swt.graphics.Image
getImage(boolean checked)
protected org.eclipse.swt.graphics.Image
getImage(ILayerCell cell, IConfigRegistry configRegistry)
int
getPreferredHeight(boolean checked)
int
getPreferredWidth(boolean checked)
protected boolean
isChecked(ILayerCell cell, IConfigRegistry configRegistry)
void
paintIconImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, int yOffset, boolean checked)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
getCellPainterAt, getPreferredHeight, getPreferredWidth, isCalculateByHeight, isCalculateByWidth, paintCell, setCalculateByHeight, setCalculateByWidth
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
getBackgroundColour
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
-
-
-
Constructor Detail
-
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 Detail
-
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 classImagePainter
- Parameters:
cell
- TheILayerCell
for which thisImagePainter
is called.configRegistry
- The currentIConfigRegistry
to retrieve the cell style information from.- Returns:
- The
Image
that should be painted by thisImagePainter
.
-
getCheckedCellsCount
public int getCheckedCellsCount(int columnPosition, IConfigRegistry configRegistry)
-
isChecked
protected boolean isChecked(ILayerCell cell, IConfigRegistry configRegistry)
-
convertDataType
protected Boolean convertDataType(ILayerCell cell, IConfigRegistry configRegistry)
-
-