public class ComboBoxFilterIconPainter extends ImagePainter
ImagePainter
that is responsible for painting the icon into the filter
row cells that are configured to show Excel like filter comboboxes.
It will handle 2 different icons:
Constructor and Description |
---|
ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider) |
ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider,
org.eclipse.swt.graphics.Image removeFilterImage,
org.eclipse.swt.graphics.Image comboImage) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.graphics.Image |
getImage(ILayerCell cell,
IConfigRegistry configRegistry) |
getCellPainterAt, getPreferredHeight, getPreferredWidth, paintCell
getBackgroundColour
getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
public ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider)
comboBoxDataProvider
- The IComboBoxDataProvider that is used to fill the filter
comboboxes.public ComboBoxFilterIconPainter(IComboBoxDataProvider comboBoxDataProvider, org.eclipse.swt.graphics.Image removeFilterImage, org.eclipse.swt.graphics.Image comboImage)
comboBoxDataProvider
- The IComboBoxDataProvider that is used to fill the filter
comboboxes.removeFilterImage
- Icon that will be rendered if a filter is applied for a cell
in a filter row.comboImage
- Icon that is rendered if no filter is applied for a cell in a filter row,
and the configured cell editor for that cell is a ComboBoxCellEditor
.protected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
getImage
in class ImagePainter
Copyright © 2013. All Rights Reserved.