org.eclipse.nebula.widgets.nattable.painter.cell
Class TreeCheckBoxPainter

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
      extended by org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
          extended by org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter
              extended by org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
                  extended by org.eclipse.nebula.widgets.nattable.painter.cell.TreeCheckBoxPainter
All Implemented Interfaces:
ICellPainter

public abstract class TreeCheckBoxPainter
extends ImagePainter


Field Summary
 
Fields inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.ImagePainter
calculateByHeight, calculateByWidth
 
Constructor Summary
TreeCheckBoxPainter()
           
TreeCheckBoxPainter(org.eclipse.swt.graphics.Image checkedImg, org.eclipse.swt.graphics.Image semicheckedImage, org.eclipse.swt.graphics.Image uncheckedImg)
           
 
Method Summary
protected abstract  CheckBoxStateEnum getCheckBoxState(ILayerCell cell)
           
 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)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 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 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.

getCheckBoxState

protected abstract CheckBoxStateEnum getCheckBoxState(ILayerCell cell)


Copyright © 2015. All rights reserved.