Class TreeCheckBoxPainter
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.TreeCheckBoxPainter
- All Implemented Interfaces:
ICellPainter
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
calculateByHeight, calculateByWidth -
Constructor Summary
ConstructorsConstructorDescriptionTreeCheckBoxPainter(org.eclipse.swt.graphics.Image checkedImg, org.eclipse.swt.graphics.Image semicheckedImage, org.eclipse.swt.graphics.Image uncheckedImg) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CheckBoxStateEnumgetCheckBoxState(ILayerCell cell) org.eclipse.swt.graphics.ImagegetImage(boolean checked) protected org.eclipse.swt.graphics.ImagegetImage(ILayerCell cell, IConfigRegistry configRegistry) intgetPreferredHeight(boolean checked) intgetPreferredWidth(boolean checked) voidpaintIconImage(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, setCalculateByWidthMethods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
getBackgroundColourMethods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
Constructor Details
-
TreeCheckBoxPainter
public TreeCheckBoxPainter() -
TreeCheckBoxPainter
public TreeCheckBoxPainter(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
- Overrides:
getImagein classImagePainter- Parameters:
cell- TheILayerCellfor which thisImagePainteris called.configRegistry- The currentIConfigRegistryto retrieve the cell style information from.- Returns:
- The
Imagethat should be painted by thisImagePainter.
-
getCheckBoxState
-