public class FilterIconPainter extends ImagePainter
ImagePainter
that is responsible for painting the icon into the filter
row cells. It will handle 3 different icons, where two of them are mandatory:
ComboBoxCellEditor
.Constructor and Description |
---|
FilterIconPainter()
Creates a
FilterIconPainter that uses the default images for removeFilter
and combo box icons. |
FilterIconPainter(org.eclipse.swt.graphics.Image filterImage)
Creates a
FilterIconPainter that uses the default images for removeFilter
and combo box icons. |
FilterIconPainter(org.eclipse.swt.graphics.Image filterImage,
org.eclipse.swt.graphics.Image removeFilterImage,
org.eclipse.swt.graphics.Image comboImage)
Creates a
FilterIconPainter that uses the given images for the icons in
the filter row cells. |
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 FilterIconPainter()
FilterIconPainter
that uses the default images for removeFilter
and combo box icons. No image for indicating the filter row will be applied.public FilterIconPainter(org.eclipse.swt.graphics.Image filterImage)
FilterIconPainter
that uses the default images for removeFilter
and combo box icons. Will apply the given image for indicating the filter row
to a user.filterImage
- Icon that will be rendered if no filter is applied for a cell in a
filter row.public FilterIconPainter(org.eclipse.swt.graphics.Image filterImage, org.eclipse.swt.graphics.Image removeFilterImage, org.eclipse.swt.graphics.Image comboImage)
FilterIconPainter
that uses the given images for the icons in
the filter row cells.filterImage
- Icon that will be rendered if no filter is applied for a cell in a
filter row.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.